diff --git a/15/part2.php b/15/part2.php index 027aa02..4a4dd45 100644 --- a/15/part2.php +++ b/15/part2.php @@ -11,12 +11,9 @@ for ($i = 0; $i < 5; $i++) { if ($newNumber > 9) { $newNumber++; } - $newInput[count($input) * $i + $row][count($input[0]) * $j + $column] = $newNumber%10; } - } -// echo "\n"; } } $input = $newInput; @@ -52,4 +49,4 @@ while (count($queue) > 0) { } } -echo $visited[count($visited) - 1][count($visited[0]) - 1]; //553 +echo $visited[count($visited) - 1][count($visited[0]) - 1]; //2858