@ -119,3 +119,9 @@ function puzzle2(string $input) : int
// Calucalete correct value
return $errorNameOriginalValue - $diff;
}
echo 'First challange solution:'.PHP_EOL;
echo puzzle1(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL.PHP_EOL;
echo 'Second challange sample:'.PHP_EOL;
echo puzzle2(trim(file_get_contents(dirname(__FILE__).'/input.txt'))).PHP_EOL;