(candidates, add)
| 1 | # Python program to find all combinations under given constraints |
| 2 | |
| 3 | def function(candidates, add): |
| 4 | result = [] |
| 5 | m = [] |
| 6 | |
| 7 | # Sorting the List and removing the duplicates using Set |
| 8 | candidates = sorted(list(set(candidates))) |
| 9 | Num(result, candidates, m, add, 0) |
| 10 | return result |
| 11 | |
| 12 | def Num(result, candidates, m, add, index): |
| 13 |