Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • Nice approach, but I could not get the point where you restrict the number of results to a triplet. For example consider the input: [1,11,3,4,5,6,7,8, 2] and sum 12, from your solution it appears that [1, 11] [4,8] [1,4,5,2] etc would all work. Commented Dec 19, 2018 at 1:31