Find All Combination In An Array That Sum To A Given Value
Given an array and a given SUM, find all the combinations present in the array whose sum is equal to given SUM. Print all such combinations in the array.
For eg:
Let’s assume
int arr[] = {5, 7, 9, 1, 6, 8};
int sum = 15;
Possible combinations are, {7, 8}, {9, 6}