39. 组合总和 完成 思路:
本题中有一个特殊的条件:同一个数字可以无限制重复被选取。 因此在递归时,startIndex应该是i,而不是i1
代码
class Solution {public List<List<Integer>> res new ArrayList<>();…
PTA | 1008 Elevator
1008 Elevator
作者 CHEN, Yue
单位 浙江大学
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It …