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.
Nice, first recursive solution I see here (not super efficient, but nice). As a note, you could have skipped storing inhab as a separate variable and having if logic over it, at the cost of 1 more iteration :) - check my solution.. (I wrote it for fun in Scala then translated it in Java)