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.
Note that the target is always the sum of one, and only one, pair of indices. In other words, you will not need to return multiple pairs. Here's an example of the test data that I worked with that ended up being "too complicated".
$numbers = 1..10
$target = 6
Returns [0,4] and [1,3].
Hope this helps simplify the work for someone else!