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.
Lol what? He used sort which is a built in function, also his solution is O(nlogn) when the optimal solution is O(n)
so use the reduce is optimial because O(n) ?
nice try
This is O(n logn). The optimal is O(n).
OP solved it, closing
I basically created an extra variable for no reason. -______-
Great Job.
This is what I consider clever, not using the built in function.
same
Of course you can.
Didn't think of that. Good Point! Also like your solution using the spread operator.
Mutating the parameter ... ouch!
Closing this issue.
You should consider it.
So is it not adding/removing coins from its stock?
No problem!
Loading more items...