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.
The test example is correct; the sums of those two arrays are 0, 4, 0, 4, 0, 4. Since there are an equal number of each sum (0 and 4), the larger sum (4) is selected and the pairs that add up to that ([ [ 0, 4 ], [ 2, 2 ], [ 5, -1 ], [ -2, 6 ] ]) are returned.
the sum of the
corresponding position
I believe the last example test should yield a different answer, if I'm not mistaken?