2017年11月18日

47.Permutations II

摘要: 题目链接:https://leetcode.com/problems/permutations-ii/description/ 题目大意:全排列一串数(有重复数字)。 法一:也即是46题的法一,只加了一行代码。代码如下(耗时499ms): 1 public List<List<Integer>> p 阅读全文

posted @ 2017-11-18 20:15 二十年后20 阅读(124) 评论(0) 推荐(0) 编辑

46.Permutations

摘要: 题目链接:https://leetcode.com/problems/permutations/description/ 题目大意:给出一串数组进行全排列(数组中数字唯一)。 法一:模板全排列代码标记数组版。代码如下(耗时5ms): 1 public List<List<Integer>> perm 阅读全文

posted @ 2017-11-18 19:42 二十年后20 阅读(179) 评论(0) 推荐(0) 编辑

导航