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.
It works well, but it must be refactored as it's really difficult to follow the logic let alone maintain this solution.
going over the "very large array" twice ends up taking twice as long, twice as much memory.
if the array was billions of members long - the 10 lines of code you saved would cost a lost of money.
this code may be impressive to newbies exclusively.
This comment has been reported as abusive
i can't even comprehend the maths in my head
I really liked your use of reduce. I'm happy I looked it up. Such a handy little function
Very clever, that performs with excellent complexity both on time and space
Your solution's good too yk, considering that yours (5kyu) is shorter than mine (7kyu)
Thank you, I feel better about myself now ðŸ«
Mine even had examples 😅
This comment is hidden because it contains spoiler information about the solution
magic numbers are not a best practice, the top solutions on this site are almost always not something you would ever use in real code.
Awesome
This comment is hidden because it contains spoiler information about the solution
bruh
больной человек
Loading more items...