Skip to content

Commit 6e73063

Browse files
committed
[Day 6] Quick fix after optimization
1 parent 019bc0c commit 6e73063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/day06.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function part1(data::Matrix{Char}, H::Int, W::Int)
2727
positions[pos] = true
2828
end
2929
positions[start] = false
30-
return sum(positions), positions
30+
return sum(positions) + 1, positions
3131
end
3232

3333
function part2(data::Matrix{Char}, H::Int, W::Int, positions::BitMatrix)

0 commit comments

Comments
 (0)