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.
Same thing for java, it gives an array with 150k-200k elements
My bad, in JS, arrays can contain up to 800,000 elements, I guess I must have looked at the tests in another language. However, the rest of my original response remains valid.
There are no inputs with length greater than 60,000 . However, if your code times out, you must find a more efficient approach. Naive solutions won't pass this kata.