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.
I don't think it should print the result. This should be changed.
The only performance tests are fixed, and they can be easily hardcoded allowing non-optimal solutions to pass.
I think must be test case like
[-5,-3,-2,-4,-1] equal 3
Please, add details on the assumptions about the input array such as it containing only positive integers, without repetition, or add some tests.
Also precise input array could be large.