Expand description
§A Maze of Twisty Little Cubicles
We first generate the maze dynamically then explore it using a BFS solving both part one and part two simultaneously.
As we start at (1, 1) and the most steps that we are interested in is 50, we can bound the maze to 2 + 50 = 52 in each dimension and used a fixed size array.
Functions§
Type Aliases§
- Input 🔒