LeetCode 78. 40. 組合總和 II(C++)

題目描述: 給定一個數組 candidates 和一個目標數 target ,找出 candidates 中所有可以使數字和爲 target 的組合。 candidates 中的每個數字在每個組合中只能使用一次。 說明: 所有數字(包括目標數)都是正整數。 解集不能包含重複的組合。  示例一: 輸入: candidates = , target = , 所求解集爲: [ [1, 7], [
相關文章
相關標籤/搜索