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
Sum it up problem
@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
plz check code i think something is missing
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