1 test case Failed

plzz check my code…getting last test case failed

@Pramod123 The problem is your code is also printing the combinations which are same. It is because there are same numbers also possible. You can also verify it by checking the output for sample test case.
You need to take care for that. One thing you can do here is rather than printing(inside base case), insert the array into a ā€˜set’. The set can be like set<vector>. Then at the end print all the elements from the set.
Feel free to ask if you need any help in implementing this code. But i suggest you to first try it by yourself.

sir …plz check the code getting segmentation fault

@Pramod123 please share the updated code ide link