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 know how to write code
smart solution :-D
thank you!)
"v" is unused, it is needed because by default first parameter is current element and second is index.
And I thought mine was clever..
how tf this works
This comment is hidden because it contains spoiler information about the solution
Mad Doctor!
lol why i didnt think this way
first i filtered the array in map function thn reduced it
May someone explain me the use of 'v' in filter method here?
nice one
holy
geniusly...
This comment is hidden because it contains spoiler information about the solution
Oh, thanks. I just thought this would be O(6n).
It seems I need learn more about the time complexity.
Loading more items...