Three Number Sum
Given an array of integers, find three integers in the array that sum to a specific target number.
Example
Input = [12, 3, 1, 2, -6, 5, -8, 6];
Target = 0
Output: [ [ -8, 2, 6 ], [ -8, 3, 5 ], [ -6, 1, 5 ] ]
Explanation
All the triplets when added, result in a sum of 0
- which is the target sum.
Constraints
-1000 <= Input <= 1000
-1000 <= Target <= 1000