Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ combinationSum2
Function
combinationSum2
javascript/0040-combination-sum-ii.js:8–12 ·
view source on GitHub ↗
(candidates, target)
Source
from the content-addressed store, hash-verified
6
* @
return
{number[][]}
7
*/
8
var
combinationSum2 =
function
(candidates, target) {
9
candidates.sort((a, b) => a - b);
10
11
return
dfs(candidates, target);
12
};
13
14
const
dfs = (
15
candidates,
Callers
nothing calls this directly
Calls
1
dfs
Function · 0.70
Tested by
no test coverage detected