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.
Best in terms of function operating time. I mean, why do complex calculations when you can do it straight away? As a complete beginner, I discover on other katas that sometimes the simplest head-on solutions are the best in time, but sometimes complex calculations work tens of times faster than similar head-on solutions. I would also do it through a set so that the algorithmic time is O(1)
booooooo