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 comment is hidden because it contains spoiler information about the solution
Good point. I updated the description.
I respect your opinion.
For many people, this problem has appropriate wording, while for others it's misinterpreted. In real-world scenarios, being able to reach out and discuss with others and doing investigation is what makes a difference between a substandard and a great developer.
There is no reason the discussion forums should be a required reading material instead of proper wording.
Nice kata, just a small hint for people who are getting timeouts:
A simple depth first search of breadth first search won't work. Timeout tests are designed to eliminate them.
This comment is hidden because it contains spoiler information about the solution
You share a similar concern that has been brought up and explained several times in the Discussion, but one of the key reasons I've decided to leave the prompt as-is comes down to this: the language used in this problem is the closest to what I was given during my interview for the company I work at now. Talking with the interviewer and getting more details on the specification that I was unclear about is just as valuable a skill as knowing how to code up a solution is, and since the Discussion posts serve as an informal documentation of sorts, having users who aren't certain of their understanding of a problem learning to supplement it with research is an additional lesson they can gain while working on this problem.
The question is a bit vague about the "entire pair is earlier" part. As I understand a pair is earlier than another one if the indice of the element at right is smaller. Thus the answer to [10, 5, 2, 3, 7, 5] is [3, 7] instead of [5, 5] because 7 comes before the second 5. The question should be updated for a clarification.