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.
isn't it an efficient way to store the sqrt result in a variable rather than doing it twice?
gg
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
wow that's actually really clever, I wasn't able to underdstad the logic till you explained, thanks
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Simple and clever!
well done!
Mate, this is beautiful. Simple, elegant and easy to understand, even for a beginner like me. Thanks a lot!
This is beautiful! I would have never thought of it this way.
This comment is hidden because it contains spoiler information about the solution
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.
Good solution...
Loading more items...