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.
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!
Well chances are I forgot it. I've been trying Python kata before I officially learn the method/loop to see how quick I can pick it up after JS. So focused on the workings I'm making tiny errors.
Loading more items...