Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Focused on Performance. ( Reducing duplicate operation )
First step, create a tree which visits all cells.
connect the cell to the tree and expand from the cell.
and expand since this c
Second step, make more doors open. [Skipped]
In some cases, the exploring will stop even when not all the cells are visited.
And why not call explore(0,0) in the beginning?
I attempted with my solution.
The result is
What does this "Same path found in different mazes" mean?
This comment is hidden because it contains spoiler information about the solution
Most of all, it doesn't return 0. 0 can be answer too. Isn't it?