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.
This is the problem of your solution.
in what language? You're supposed to return -1 for empty array, yes.
The tests for JS have been modified and improved over past 5 days.
And since you have not responded either, I am closing the issue.
I ran the test cases using your code, and did not have an issue with the random tests whatsoever.
They all passed.
By the way, I am using
Node v12.x
I hope that helps.
Which language?
Duplicate issue.