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.
Very nice use of iterators!! :)
This comment is hidden because it contains spoiler information about the solution
Lmao what?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
didn't read that width and height will be > 1 :D
Yeah, you're right. At some point this kumite changed into testing whether or not the number is even.
As for the power_of_two, I think that the first solution was the best one:
return n & ( n - 1 ) == 0
Am i mistaken or does this only check if the number is even and not odd, but does not check if it's a power of two? For example
I guess the test cases only test odd numbers for the False test case and thus the test cases work fine.