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 suggest making lists given the description comment about 10,000,000 length lists with both valid pairs in various locations, and ones without any valid pairs, just to ensure your algorithm can even parse through a list with that many elements without timing out first.
Fixed
These are the sample tests:
The third test is mislabeled. Instead of saying
The number of laps for Charles is wrong.
it should beThe number of laps for Bob is wrong.
since it's testing the first element of the result of nbrOfLaps, which is Bob. I don't know if it makes a difference but I'm writing JavaScript.How do you write a timeout test? I'd like to test against it. If I can write a few timeout tests then I can be confident in my code.