Use backtracking, first sort the vector, then use the elements in the array. Need to remember is that we need unique solution, so sorting and do not get previous one is important, which is every time do not use the previous elements
leetcode-39-Combination Sum
最新推荐文章于 2021-01-11 14:25:15 发布