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.
as you wish
no, otherwise they cannot see the answer. And that doesn't give away the actual solution.
(marked as spoiler :-)
note, you're doing a dfs. That cannot work here.
you can try, but I think you have something else that is causing a loss of time. An actual brute force passes the tests in like 4-6s, iirc.
you can brute force it.
That matrix is part of the test suit. Not relevant for the solution.
a and b are nodes, so yes, that's all you need to find the path (or not).