class Solution {
public:
vector<string> Permutation(string str)
{
vector<string> vans;
sort(str.begin(), str.end());
do{
vans.emplace_back(str);
}while(next_permutation(str.begin(), str.end()));
return vans;
}
};

京公网安备 11010502036488号