Shortest Maze Path with Keys and Doors
Asked at Meta · Coding Questions · Difficulty: Hard
You are given a maze as a list of equal-length strings. Cells are: `S` (start), `E` (exit), `#` (wall), `.` (open). A lowercase letter is a key lying on the floor; the matching uppercase letter is a locked door. You may step into a door cell only if you have already picked up its key (e.g. `A` needs `a`). Moves are 4-directional and every step costs 1.
Loading the problem…