DSA Advanced Problems

The Maze II

Find the shortest traveled distance when a ball must roll until a wall or boundary before turning.