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.
interesting!
N делят на два , пока n не станет равной 1 или меньше, рекурсия рулит)
Рекурсия решает)
Recursion is power!)
как. это. блядь. работает?!
This comment is hidden because it contains spoiler information about the solution
2^0
?Resolved.
Javascript.
Which language?
No feedback at all when clicking submit button.
Just pass/fail.
only draw back in this version is the inefficient ammount of recursions.
e.g. if n=1000 you would otherwise run down to n<1 which is not necessary (easy to solve ;))
besides that you might as well break if n == 2 as we know this to be true. No need to to another call to isPowerOfTwo(1) ;)
Hmmmm. Got b,c,a,d,e. Expected array values = b,c,a,d,e
Something I'm missing?
Very elegant.