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.
Yes, when you reach the second 5 you've found the first pair (
[5, 5]
) that adds up to 10 and you return it.([8,5,6,5,4,2],10)
should return [5,5] because that is closest set to the left?
What was the input value? Without it we can only guess.
What's unclear about that?
This comment is hidden because it contains spoiler information about the solution
Please, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#post-discourse
well done!
This comment is hidden because it contains spoiler information about the solution