Skip to content

Commit

Permalink
[Day 21] Little change to make code logic more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
goggle committed Jan 8, 2024
1 parent a3a0ab6 commit 66d0d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/day21.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ function part2(M::Matrix{Int8}, start::CartesianIndex{2})
visited = zeros(Bool, size(bigM))
visited[start] = true
reachables[1], queue = bfs!(bigM, visited, [start], start, 65)
reachables[2], queue = bfs!(bigM, visited, queue, start, 196)
reachables[3], _ = bfs!(bigM, visited, queue, start, 327)
reachables[2], queue = bfs!(bigM, visited, queue, start, 65 + 131)
reachables[3], _ = bfs!(bigM, visited, queue, start, 65 + 2 * 131)

# Some explanations:
#
Expand Down

0 comments on commit 66d0d25

Please sign in to comment.