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.
Using it and works like a charm... What was it that frustrated you?
Already submitted the random test cases. Waiting for author's answer.
Isn't 1 a power of 2 ?
2 ** 0 = 1 ?
Isn't 1 a power of 2 ?
2**0 = 1 ?
Your submitted solution works for me, inside codewars, and with ruby 1.8/1.9/2.0/2.1/jruby. I have no idea what the problem is.
However, the code snippet you posted is returning words in a different order than found in the dictionary. Your submitted solution fixes that (with a hack ;).