MCPcopy Create free account
hub / github.com/LjyYano/LeetCode / backtrack

Method backtrack

src/main/java/L0039_CombinationSum.java:49–71  ·  view source on GitHub ↗

回溯方法 @param result 存储所有符合条件的组合 @param current 当前正在构建的组合 @param candidates 候选数组 @param remain 剩余需要凑成的目标值 @param start 当前可以选择的起始位置

(List<List<Integer>> result, List<Integer> current, 
            int[] candidates, int remain, int start)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

combinationSumMethod · 0.95

Calls 2

addMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected