Sum it up problem

in the input example there is 1 1 6 where 1 is coming twice but in ques it is saying each number should exactly come one time

@vanisinghal0201 vani there are 2 ones so in each o/p we can use upto 2 ones. had there been a single 1 than you cant use. i hope its clear

how can i use backtracting in it

@vanisinghal0201 use subsequences technique of include exclude

plz check code i think something is missing

@vanisinghal0201 here refer this

what is wrong in my code

@vanisinghal0201 return outside if sum==t and removed j==n;


but repeated are coming so gave you the correct code for reference