46. Permutations

46. Permutations 方法1: DFS 易错点: 方法2: swap Given a collection of distinct integers, return all possible permutations. Example: Input: [1,2,3] Output: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1
相关文章
相关标签/搜索