Example #1
0
 function lines()
 {
     return get_file_lines($this->filename);
 }
<?php

require __DIR__ . '/../_common.php';
// Read input file
$in = get_file_lines('Reverse Complement Problem.txt');
$str = $in[0];
// Which is the best?
echo ReverseComplement($str);
<?php

require __DIR__ . '/../_common.php';
// Read input file
$in = get_file_lines('Frequent Words Problem.txt');
$str = $in[0];
$k = $in[1];
echo FrequentWords($str, $k);