2022-06-06
Description
Input: nums = [1,1,2]
Output:
[[1,1,2],
[1,2,1],
[2,1,1]]Input: nums = [1,2,3]
Output: [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]Solution
Approach #0
Description
Solution
Approach #0
Description
Solution
Approach #0
Last updated