~/boss / maze-escape
Breadth-first search
The Maze
You are the wave. Paint each step outward until you touch the exit.
Loading the fight…
How to beat it
Wave 1 is every square one step from the start, wave 2 every square two steps away, and each wave only touches new squares. The first wave to reach the exit is the shortest way out.
Now the real boss
Interviews ask for the code. Watch it run, then write it yourself, tested in Python, C++ or Java.
On your phone? Writing code is easier on a laptop: open bossfight.dev/problems/rotting-oranges there. Sign in with GitHub to keep your progress on every device.