标签:begin ati back ring 剑指offer ret 字符 string pre
class Solution {
public:
vector<string> Permutation(string str) {
vector<string> res;
if(str=="")return res;
do{
res.push_back(str);
}while(next_permutation(str.begin(),str.end()));
return res;
}
};
标签:begin ati back ring 剑指offer ret 字符 string pre
原文地址:https://www.cnblogs.com/virgildevil/p/12182432.html