Given an array of non repeating numbers and a key, find all the unique combinations in that array, where the sum of those combination is equal to the key.

Input: Array = [2,3,6,7], key = 7, Output: [ [7], [2,2,3] ] Example 2: Input: candidates = [2,3,5], … Continue reading Given an array of non repeating numbers and a key, find all the unique combinations in that array, where the sum of those combination is equal to the key.