leetcode 面试题 08.07.无重复字符串的排列组合
原题 【leetcode 面试题 08.07.无重复字符串的排列组合】面试题 08.07.无重复字符串的排列组合
文章图片
/*
*@v7fgg
*执行用时 :79 ms, 在所有 Java 提交中击败了7.50%的用户
*内存消耗 :47.8 MB, 在所有 Java 提交中击败了100.00%的用户
*2020.06.08
*/
class Solution {
List> list=new ArrayList<>();
Set yongguo=new HashSet<>();
String s="";
public String[] permutation(String S) {
char ch[]=S.toCharArray();
zuhe(S.length(),ch);
String[] ans=new String[list.size()];
for(int i=0;
i
/*
*@v7fgg
*执行用时:40 ms, 在所有 Java 提交中击败了20.91%的用户
*内存消耗:48 MB, 在所有 Java 提交中击败了100.00%的用户
*2020年6月24日 20:10
*/
class Solution {
List> list=new ArrayList<>();
String s="";
public String[] permutation(String S) {
char ch[]=S.toCharArray();
boolean[] yongguo=new boolean[ch.length];
zuhe(S.length(),ch,yongguo);
String[] ans=new String[list.size()];
for(int i=0;
i
推荐阅读
- PMSJ寻平面设计师之现代(Hyundai)
- 杜月笙的口才
- 【Leetcode/Python】001-Two|【Leetcode/Python】001-Two Sum
- Linux下面如何查看tomcat已经使用多少线程
- leetcode|leetcode 92. 反转链表 II
- 皮夹克
- 解读《摩根集团》(1)
- 绘本与写作
- 蓝桥杯试题
- 麦田社群