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.
Use something like this
This comment is hidden because it contains spoiler information about the solution
I am a new student in this programming and I do not understand very well what your code does, could you please explain it to me? edit: Sorry for my google translate translation, I don't speak English very well :D
nice comment, thanks!
Your recursion solution breaks if power = 0 (the termination condition disappears).
In general, termination conditions with i === N are dangerous for recursions.
It is better to use i > N - 1.