MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / function

Function function

Backtracking/Code/combinationSum.py:3–10  ·  view source on GitHub ↗
(candidates, add)

Source from the content-addressed store, hash-verified

1# Python program to find all combinations under given constraints
2
3def 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
12def Num(result, candidates, m, add, index):
13

Callers 1

combinationSum.pyFile · 0.85

Calls 1

NumFunction · 0.85

Tested by

no test coverage detected