mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-27 22:43:30 +08:00
Format code with prettier (#3375)
This commit is contained in:
@ -8,6 +8,7 @@ import java.util.List;
|
||||
* @author Alan Piao (https://github.com/cpiao3)
|
||||
*/
|
||||
public class Permutation {
|
||||
|
||||
/**
|
||||
* Find all permutations of given array using backtracking
|
||||
* @param arr the array.
|
||||
@ -20,6 +21,7 @@ public class Permutation {
|
||||
backtracking(array, 0, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Backtrack all possible orders of a given array
|
||||
* @param arr the array.
|
||||
@ -37,6 +39,7 @@ public class Permutation {
|
||||
swap(index, i, arr);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Swap two element for a given array
|
||||
* @param a first index
|
||||
|
Reference in New Issue
Block a user