diff --git a/day_07/1.rb b/day_07/1.rb index 7006f4e..079d668 100755 --- a/day_07/1.rb +++ b/day_07/1.rb @@ -27,9 +27,9 @@ class Main end # step west then dfs south - total = dfs(step_west, graph, total, visited) # west + total = dfs(step_west, graph, total, visited) # step east then dfs south - total = dfs(step_east, graph, total, visited) # east + total = dfs(step_east, graph, total, visited) return total elsif graph.at(next_point) == "." visited.add(next_point)