0
Given an array and a value, find all the triplets whose sum is equal to the given value.
For example, if the given array is {12, 3, 4, 1, 6, 9} and given sum is 24, then there are triplets (12, 3 and 9) present in array whose sum is 24.
6, 9, 9
6, 6, 12
3, 9, 12
ordering of ...