We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea33062 commit ad4578fCopy full SHA for ad4578f
src/test/scala/eu/sim642/adventofcode2024/Day16Test.scala
@@ -68,6 +68,16 @@ object Day16Test {
68
assert(bestPathTiles(parseGrid(exampleInput2)) == 64)
69
}
70
71
+ test("Part 2 target with multiple predecessors") {
72
+ assert(bestPathTiles(parseGrid(
73
+ """#####
74
+ |#...#
75
+ |#S#E#
76
77
+ |#####
78
+ |""".stripMargin)) == 8)
79
+ }
80
+
81
test("Part 2 input answer") {
82
assert(bestPathTiles(parseGrid(input)) == 449)
83
0 commit comments