Day 2 solution.

This commit is contained in:
Dan Chadwick
2024-11-24 10:03:05 -05:00
parent 5e5c726ebb
commit f39448a54e
4 changed files with 1113 additions and 12 deletions

View File

@@ -5,6 +5,15 @@ foreach ($days as $day) {
require($day);
}
$d1 = day1solution1();
$d1b = day1solution1b();
$solutions = [];
$solutions['day_1']['part_1'] = day1solution1();
$solutions['day_1']['part_2'] = day1solution1b();
$solutions['day_2']['part_1'] = day2part1();
$solutions['day_2']['part_2'] = day2part1b();
// OUTPUT THE SOLUTIONS WE HAVE.
foreach ($solutions as $day => $parts) {
foreach ($parts as $part => $answer) {
echo "*** The answer to $day $part is: $answer ***\n";
}
}