Sum it up Questions Backtracking


Getting wrong output
Please debug this code it not printing in correct order

hi dashpreet
the problem with your code is that it is printing duplicates pairs as well.
you can do something like storing all combinations in a set data structure(which doesn’t allow duplicates).

In which data structure should I store?

SET is not taught yet in this course,how to use it?