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.
It works. But the question is what you aim for:
I'm not saying one is definitely better than the other, especially since this is not a code for production, but for practice. For this reason it could also make sense to supply several implementations for each of the above goals.
You have given me hope.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
He creates a list interpreted as queue which already contains the root node. The queue needs a first element otherwise the while loop would not execute its body.
what does [node] expression mean?
just because the kata is too old to have proper performances tests.
But it works
This comment is hidden because it contains spoiler information about the solution
but especially bad about performances...
The best, congratulations!! Very simple and clean!!
This comment is hidden because it contains spoiler information about the solution
This is terrible practice and not clever. The whole point of these helpers is to use the linked list structure to run those methods. If you're converting back into an array why even have a linked list? These solutions are 3x slower than necessary.
ok, now i know
can anybody explain that... its a tricky question to me ...
Loading more items...