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.
Thanks, I just started reading Groking algorithms to be more competent
same here
god damn it..
There is no such thing as 'O(2n)' in big O notation. There are different notations which keeps the constant multiplier before function, such as 'tilde notation', see https://www.reddit.com/r/compsci/comments/1bl0q8/tilde_notation/. But you are right this solution is quite inefficient.
Hahaha
Lol, author says that array can be VERY big, and O(2n) solution gots top place when O(1) solution takes hardly more time to come with)
I'm not saying mine is better, jsut asking a question mate, i'm here to learn.
If we want to argue best practices, where's your validation?
Bruh have you seen yours lol
This comment is hidden because it contains spoiler information about the solution
Well well, not mine kata)
Yo this is beautiful
this is way too inefficient to be in the top solutions, isn't it ?
Awesome, I love it! (my function has 24 lines, but let's say it is a matter of code formatting 😅)
My solution was 16 lines of code 🥴
Loading more items...