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
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
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.