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.
Thx.
i
should equal1
, there is no reason to comparearr[0]
to itself.O(nlogn)
Just wanted to fix the tests and try this kumite thing oout ;)
It goes to minus infinity, math logarithmic expressions look if you want
If you want to use totally inefficient approach, then yes, you can.
you can also do it like ;
findMax = a => a.sort((x, y) => x - y ).pop()
thanks
What if numners are all negative