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.
sum_pairs([10, 5, 2, 3, 7, 5], 10) should return [5, 5] and NOT [5, 5] according to the given instructions of left REDUX.
Can this ambiguity be taken care of please?
Just as bkaes said, the goal is to return the pair of indices where the second index is the smallest.
To more easily imagine the scenario, if it were possible to solve this problem in a single left-to-right pass, then it would make sense that the pair to be returned would be the first "complete" pair encountered. Any numbers after the second index of the pair would not even be visited.
To quote the description:
Even though the description could include a little bit more text to make this more clear, the kata actually expects you to find the pair with the smaller second index.