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.
You are a Legend
You are right, after checking again I actually messed something up with the indentation and now I also understand why it takes the order into consideration. Thanks
Was the kata changed since this answer had been submited? It doesn#t seem to take the order of customers into account and when I copied the code and tried it (after adjusting for the weird use of spaces) it didn't return the right answers for some inputs
if i is a square wouldn't your code add it's root twice to divs?
nice one-liner but very inefficient
I was thinking the same when I tried understanding the code