46. Permutations
2019-04-24
46. Permutations
Given a collection of distinct integers, return all possible permutations.
Example:
1 | Input: [1,2,3] |
Code:
1 | class Solution(object): |
1 | # DFS |
2019-04-24
Given a collection of distinct integers, return all possible permutations.
Example:
1 | Input: [1,2,3] |
1 | class Solution(object): |
1 | # DFS |