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.
In the first case, the pairs of indices are
0,4
and1,5
, summing to10
.In the second case, the pairs are
0,2
and1,3
, summing to6
.In both cases, use both
1
s once ( "element .. can only be counted in one Pair" ), and use the0
s at indices0
and1
( "return the smallest [ correct answer ]" ).I have no idea how you would arrive at
15
; it might have helped if you had explained that.