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 should be more clear in the description
Others have answered it, but this is a bit of a "gotcha" element to the question.
With the "earliest pair" and "parse from the left please" statements, I'm trying to hint at the following behavior: Imagine the list doesn't exist until you begin parsing values one-by-one, inserting them as you go along. If your algorithm was capable of finding the first pair that exists as elements get added, that would be the perfect solution.
Example with k-goldon's set:
Very questionable use of the phrase "entire pair is earlier". Entire pair is NOT earlier in your example. In the first pair, the first element is earlier, in the second - second is earlier. It seems that the description is matched to the algorithm.
Element with higher position decides of position of pair.
For example:
for sum = 6 in [1, 3, 0, 4, 6, 3, 8] there are two pairs: 3, 3 (at pos. 1, 5) and 0, 6 (at 2, 4). (3,3) is at 5 and (0, 6) is at 4. So "entire pair (0, 6) is earlier".
Probably. Nested loops grow extremely fast when the input grows, while flat loops just grow proportionnally.
See:
etc.
I think your question has received an answer :)
Really? if i will have third but not nested loop, will not it time out?
are u using python ?
This comment is hidden because it contains spoiler information about the solution
what is meaning of "entire pair is earlier" ???
wrong return on "http://www.googlewww.com" give "com" insted of "googlewww"
great codeš¤©