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.
I did but comparing my code with that of others it seems I used a very different solution method to most people. I took my cue from the merge algorithm outlined on the Wikipedia page about Hamming (aka regular) numbers.
I got stuck with this problem too. I was using "hash.delete_if" – when I switched to the non-destructive "hash.reject" it worked fine.
It might be worth adding a line to the kata description warning people that the input hash should not be messed with.