Problem 499 · Hard

The Maze III

Find path in maze with directional rolling ball returning lexicographically smallest path.

Open the interactive visualisation