From 0d2a383320d8bbd6232a5e126d532a2feb61afb7 Mon Sep 17 00:00:00 2001 From: Akuli Date: Sat, 23 Dec 2023 20:36:03 +0200 Subject: [PATCH] Update examples/aoc2023/day23/part2.jou --- examples/aoc2023/day23/part2.jou | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/aoc2023/day23/part2.jou b/examples/aoc2023/day23/part2.jou index d72a86ba..241ceb52 100644 --- a/examples/aoc2023/day23/part2.jou +++ b/examples/aoc2023/day23/part2.jou @@ -173,7 +173,7 @@ def longest_path_dfs(graph: Graph*, avoid: bool*, current: int, depth: int) -> i return 0 assert not avoid[current] - avoid[current] = True # must reset before returning + avoid[current] = True best = 0 for next = 0; next < graph->num_nodes; next++: