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.
True, I was really just trying permutations to see if it effected the time to run the solution. My solution was also O(n), but the timeouts prevented submission...
I would not be surprised if most people cannot complete this kata due to time out issues. Sometimes I can do one or two tests and sometimes none with a time out. Refactored to recursive with no speed improvements. Could not complete this kata (fairly sure it works fine, does locally on number arrays > 1000 items).