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.
This comment is hidden because it contains spoiler information about the solution
All test cases except 1 has the same graph structure, and the remaining test case only has 1 of 3 possible graph structures, so it's very easy to hardcode all of them: see this
Basically, there should be actual random tests (actual as in, random graphs), and the graph sizes needs to be bigger.
(Random tests also need
null
cases, obviously)Either the description (preferrably) or the sample tests (or both) should expose the fact that a single starting thing can, via different processes, lead to multiple ending things, and vice versa, multiple different starting things can lead to a single ending thing.
This would save the user some time since without those specifications, a much simpler solution is possible and likely to be tried first.
No random tests in JS.
Could do with more random testing.
This comment is hidden because it contains spoiler information about the solution