摘要:
Given a collection of 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], and[3,2,1].class Solution {
public: vector<vector<int> > permute(vector<int> &num) { // Start typing your C/C++ solution b 阅读全文
posted @ 2013-01-19 08:29
西施豆腐渣
阅读(223)
评论(0)
推荐(0)
浙公网安备 33010602011771号