46. Permutations (has not been solved yet)

来源:互联网 发布:淘宝达人怎么玩 编辑:程序博客网 时间:2024/06/07 07:20

Given a collection of distinct numbers, return all possible permutations.

For example,
[1,2,3] have the following permutations:
[
[1,2,3],
[1,3,2],
[2,1,3],
[2,3,1],
[3,1,2],
[3,2,1]
]

0 0
原创粉丝点击