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.
IDE hints and the cdo
This is pretty dumb, I must admit
What I meant is that
1 <= 100
does not constrainn
in any way whatsoever.Given a n with constrain 1<=100
- Not a strong constraint if you ask meThe definition of a leaf is 'a node with no children', so not all children are leaves.
The description says that "The rotation is changing a root of the tree to be next or previous leaf of the current root", but shouldn't it say child? In the first example the previous leaf of 9 is 8, but after rotation the new root is 7, which was originally 9's previous child.
I guess Euclidean distance would be more than clear. ;)
I would suggest that the metric by which a path is measured should be included in the description. At the moment, one could assume that all the edges have equal lengths/weights.
Brilliant!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Java translation kumited.
Aww, beat me to it. ;)
This comment is hidden because it contains spoiler information about the solution
Really cool Kata! Pretty easy for computer science graduates, though. ;)
Loading more items...