We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5db9f12 commit1bcd012Copy full SHA for 1bcd012
src/main/java/com/fishercoder/solutions/_46.java
@@ -11,10 +11,10 @@ public static class Solution1 {
11
publicList<List<Integer>>permute(int[]nums) {
12
List<List<Integer>>result =newArrayList();
13
result.add(newArrayList<>());
14
-returnbacktracking(nums,0,result);
+returnrecursion(nums,0,result);
15
}
16
17
-privateList<List<Integer>>backtracking(int[]nums,intindex,List<List<Integer>>result) {
+privateList<List<Integer>>recursion(int[]nums,intindex,List<List<Integer>>result) {
18
if (index ==nums.length) {
19
returnresult;
20
@@ -27,7 +27,7 @@ private List<List<Integer>> backtracking(int[] nums, int index, List<List<Intege
27
28
29
result =newResult;
30
-returnbacktracking(nums,index +1,result);
+returnrecursion(nums,index +1,result);
31
32
33