摘要: 描述 Given a collection of distinct integers, return all possible permutations. Example: 思路一:递归 利用STL的函数swap()来交换数组的元素 思路二 next_permutation方法 利用STL的库函数: 阅读全文
posted @ 2018-10-09 16:52 华不摇曳 阅读(490) 评论(0) 推荐(0) 编辑