leetcode 39. 組合總和(Java版)

題目描述(題目難度,中等) 給定一個無重複元素的數組 candidates 和一個目標數 target ,找出 candidates 中全部能夠使數字和爲 target 的組合。 candidates 中的數字能夠無限制重複被選取。 說明:java 全部數字(包括 target)都是正整數。 解集不能包含重複的組合。 示例 1: 輸入: candidates = [2,3,6,7], target
相關文章
相關標籤/搜索