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.
Approved
C++ test lacks the
std
namespace usage. Can't run them without adding it.Fixed.
OK, changed for better understanding.
In this case, leaf == child, meaning a root has children, they are leafs.
Thanks for the pointer. If the tree cannot be inverted, one should return the original one.
Added this information and tests for such cases.
Solved issues with random tests.
I've finally got the point about mutability and safety of a random function. Thanks, fixed.
Currently, Kata has unresolved issue with tests.
This comment is hidden because it contains spoiler information about the solution
Thanks for your feedback, I've updated my solution.
random years more than two
;