代码冗余
这一行排序的代码并没有用
This commit is contained in:
parent
d72820b1d0
commit
072c18bb7e
@ -15,7 +15,6 @@ public ArrayList<String> Permutation(String str) {
|
|||||||
if (str.length() == 0)
|
if (str.length() == 0)
|
||||||
return ret;
|
return ret;
|
||||||
char[] chars = str.toCharArray();
|
char[] chars = str.toCharArray();
|
||||||
Arrays.sort(chars);
|
|
||||||
backtracking(chars, new boolean[chars.length], new StringBuilder());
|
backtracking(chars, new boolean[chars.length], new StringBuilder());
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user