Skip to content

Commit

Permalink
wrong length
Browse files Browse the repository at this point in the history
  • Loading branch information
glguy committed Dec 18, 2024
1 parent 6d375ef commit 2dd1bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solutions/src/2024/18.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ main =
print cost
let input' = reverse input
isBlocking i = isNothing (search (drop i input'))
(x,y) = input' !! binSearchLargest isBlocking 0 1024
(x,y) = input' !! binSearchLargest isBlocking 0 (length input' - 1024)
putStrLn (show x ++ "," ++ show y)

-- | Find the minimum cost to go from one side of the maze to the other, if there is one.
Expand Down

0 comments on commit 2dd1bf1

Please sign in to comment.