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.
And what is the complexity of solving with recursion than solving with a loop such as my soluction? I think this approach is shorter in code but memory complexity is O(n). using a loop solution memory complexity is O(1)
I totally forgot about using recursion lol
Блин, балдею от таких решений. Correctamundo!!
You had me at
meth
:)tldr