首页 > TAG信息列表 > getPermutations
[Algorithm] Permutations
Write a function that takes in an array of unique integers and returns an array of all permutations of those integers in no particular order. If the input array is empty, the function should return an empty array. Sample Input array = [1, 2, 3] Sample Out