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 019bc0c commit 6e73063Copy full SHA for 6e73063
src/day06.jl
@@ -27,7 +27,7 @@ function part1(data::Matrix{Char}, H::Int, W::Int)
27
positions[pos] = true
28
end
29
positions[start] = false
30
- return sum(positions), positions
+ return sum(positions) + 1, positions
31
32
33
function part2(data::Matrix{Char}, H::Int, W::Int, positions::BitMatrix)
0 commit comments