print all the subsequences having the sum k ? take the array as [2,3,5,1,6,4,7] and k=7....
As backtracking is taking the Time Complexity: O(2^n) and the space complexity of Auxiliary Space: O(h). is there is any way to do it in lower time complexity?