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.
Also, of course, your specifications for how the decorations should be added is pretty much non-existent.
Your random tests are testing user function against itself.
Initial code is wrong (has wrong number of arguments).
But by doing so, you can complete it just by copying the result, as you did in your solution?
It does have random tests, I don't get, why they don't work, though?
Will, try to make a better explanation tomorrow.
Needs random test cases
Thanks for the explanation! Really helped me understand the concept :D
PS. It might be worth noting, that the sum should be replaced by the sum of the sum's two digits, every time it exceeds 10.
You're right, the 2nd argument is the number of o's, this have been clarified now.
Thank you for the feedback!
Some questions:
In
decoratedTree(7, 2)
I suppose 2d argument is for number ofo
-decoration per "row" (It would be better to tell it explicitely).o
in 4th row of your tree ? :It seems there're spaces on the right too except the last one . . .