Given a collection of distinct integers, return all possible permutations.
Example
Input: [1,2,3]
Output:
1 | [ |
Code
1 | public List<List<Integer>> permute(int[] nums) { |
写BUG的程序猿
Given a collection of distinct integers, return all possible permutations.
Input: [1,2,3]
Output:
1 | [ |
1 | public List<List<Integer>> permute(int[] nums) { |