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.
Must use this approach more often.
Two different methods give me 29, but I can't get 28 :-/
should be fixed now.
Typo:
Deep-first search
->Depth-first search
.Thank you for such a charming kata! I was pleased finding the necessary approach
missing "non-empty"
In description says return the smaller number if 2 numbers are same distance from
n
, but right now asking for the one appear first.retired, duplicate
yes
Duplicate?
ah ok
Let me edit the description to make it clearer, also I will put some hints.
The main difference between this 2 Kata is that going back to the beginning point or not
For this one, you can save 1 step in certain situation, because you can end at anywhere.
Ending at one of the particular points will save you 1 step. But these points might not always exist, so you will see it has 1 less in some cases, but not all.
Are the solutions of the first kata even correct? I find that your ref sol here has in many cases -1 moves than the expected min number of the other kata.
.
Loading more items...