
Desicription
Given a collection of distinct numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
1 |
[ |
Solution
1 |
class { |

Given a collection of distinct numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
1 |
[ |
1 |
class { |
近期评论