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.
After several minutes trying to understand this solution I finally got it. Can't believe its simplicity!
It seems to me using this solution could be buggy, if I pass a boolean it will also return a number. For example: findNextSquare(true) will return 4. So I don't know what to think.