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.
This comment is hidden because it contains spoiler information about the solution
Great solution!
Your solution fails on this test:
in_array(["foo bar", "foo", "bar"], ["foo", "bar"])
Sorry.
This solution allows duplicates in the answer and thus is wrong.
what in case of punctuation?
Ruby version is broken.
visual -->
[{start(5) ... {start(3) ... end(7)} ... end(5)}]
(7 ends before 5 ends) I hope it clarified clearly.The second 5 is after the whole [3,7] pair, it's been discussed before (several times).
Also in the instructions there are several examples.
The instructions are very confusing. What exactly does "the first pair in order of appearance mean"? To me, sum_pairs([10, 5, 2, 3, 7, 5], 10) should result in [5,5] not [3,7].
This comment is hidden because it contains spoiler information about the solution