Skip Navigation

[2024 Day 6] What is the optimal algorithm for Part 2?

I know that we can brute force it by placing an obstacle at every valid position in the path, but is there a more elegant / efficient solution?

14
14 comments
14 comments