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

Function backTrack

javascript/0046-permutations.js:24–28  ·  view source on GitHub ↗
(nums, i, permutation, permutations)

Source from the content-addressed store, hash-verified

22};
23
24const backTrack = (nums, i, permutation, permutations) => {
25 permutation.push(nums[i]);
26 dfs(nums, permutation, permutations);
27 permutation.pop();
28};
29
30/**
31 * https://leetcode.com/problems/permutations/solution/

Callers 1

dfsFunction · 0.70

Calls 3

dfsFunction · 0.70
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected