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.
yeah, you're right, sorry about that
You would be surprised how many people failed to come up with the solution. The fact something is basic for you doesn't mean it's basic for everyone.
Have you actually tried printing what that solution returns? Why do you assume the test is broken? there are over 700 passed solutions to this. Wouldn't it make more sense to assume it's your solution that is broken?
Try building a tree provided as an example, and see if your solution prints the expected output.
Hint: the result of a function in ruby is the last expression in it. in your case, it's
Do you think that call will return the expected call?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution