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.
Nope, this is not O(n^2). Just O(n) with a large coefficient (36, when corrected for digits).
Could you explain how this is O(n^2)?
But its less readable. Nice trade to discuss hahaha
I agree! Although the top voted solutions are very nice and compact, they offer a slower time complexity.
Duplicate, not actionable.
'Sok, buddy, I did the same thing.
This comment is hidden because it contains spoiler information about the solution
I think time & space complexity should be checked in tests.
Like in codility.
It is pretty important "how" user solves the task not only "if".
I'd say that the addition of a "Fastest" category could cover that but then where do you stop? Do you add "Shortest"? Or what about a "Shortest and Fastest" category and then a "Cleverist and Fastest but not Shortest" category? If the Clever and Best Practices categories were used correctly I think we'd just about have it covered.
This comment is hidden because it contains spoiler information about the solution
I quite
This comment is hidden because it contains spoiler information about the solution