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.
The speed of sort is irrelevant for an array of a couple of items and only a handful of invocations. Readability and maintainability is way more important for such cases.
Ddd-gx only posted that line, the complete solution requires more code, so technically, saying "works for the condition..." is wrong. Also a walk of length 5 will always be false ;)
It did allow incomplete solution to pass. A walk of length, say, 5 isn't tested.
No, it doesn't.