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.
Damn thats clever, mine is more or less the same but I didn't think to use the test method which could've shrunk my code down into a single line like yours, nice :)
4^0 = 1
One of Ruby test expect that 1 is power of 4. Is it a test error?
This solution works recursively, so it can process more deeply nested arrays.