摘要: 题目 :https://leetcode cn.com/problems/permutations/ 给定一个没有重复数字的序列,返回其所有可能的全排列。 样例输入与输出 : 输入: [1,2,3] 输出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], 阅读全文
posted @ 2020-01-29 21:16 patrolli 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题目 :https://leetcode cn.com/problems/letter case permutation/ 给定一个字符串S,通过将字符串S中的每个字母转变大小写,我们可以获得一个新的字符串。返回所有可能得到的字符串集合。 样例输入与输出 : S = "a1b2" ["a1b2", 阅读全文
posted @ 2020-01-29 20:39 patrolli 阅读(181) 评论(0) 推荐(0) 编辑