MCPcopy Index your code
hub / github.com/neetcode-gh/leetcode / backTrack

Function backTrack

javascript/0039-combination-sum.js:28–38  ·  view source on GitHub ↗
(candidates, target, i, combination, combinations)

Source from the content-addressed store, hash-verified

26};
27
28const backTrack = (candidates, target, i, combination, combinations) => {
29 combination.push(candidates[i]);
30 combinationSum(
31 candidates,
32 target - candidates[i],
33 i,
34 combination,
35 combinations,
36 );
37 combination.pop();
38};

Callers 1

combinationSumFunction · 0.70

Calls 3

combinationSumFunction · 0.70
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected