Browse Source

[2017-12-03] Samples

master
Elis Hirwing 4 years ago
parent
commit
d6143fcaef
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 12
      day3/main.php

12
day3/main.php

@ -114,3 +114,15 @@ function puzzle2(int $maxNumber) : int
return $number - 1;
}
echo 'First challange sample:'.PHP_EOL;
echo puzzle1(1).PHP_EOL;
echo puzzle1(12).PHP_EOL;
echo puzzle1(23).PHP_EOL;
echo puzzle1(1024).PHP_EOL.PHP_EOL;
echo 'First challange solution:'.PHP_EOL;
echo puzzle1(347991).PHP_EOL.PHP_EOL;
echo 'Second challange solution:'.PHP_EOL;
echo puzzle2(347991).PHP_EOL;

Loading…
Cancel
Save