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.
same idea but not a one liner
I guess we'll never know
Use something like this
This comment is hidden because it contains spoiler information about the solution
array.concat(0) equal array.concat([0])
It is "implicit conversion"
Kata say "should push an element to arr". Any element.
We are pushing "0".
matter of habit
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.
This comment is hidden because it contains spoiler information about the solution