摘要:
1. 回溯算法1 https://leetcode-cn.com/problems/permutations/ import java.util.ArrayList; import java.util.List; /** 题目描述:给定一个 没有重复 数字的序列,返回其所有可能的全排列。 No77题 阅读全文
posted @ 2020-04-02 23:02
JohnTesla
阅读(348)
评论(0)
推荐(0)
摘要:
在刷LeetCode时,碰到一个List.add方法的问题 题目如下:https://leetcode-cn.com/problems/combinations/ 正确结果应该是: [[2,4],[3,4],[2,3],[1,2],[1,3],[1,4],] 1.问题代码如下 public clas 阅读全文
posted @ 2020-04-02 21:16
JohnTesla
阅读(1846)
评论(0)
推荐(0)

浙公网安备 33010602011771号