c++stl中的排列函数next_permutation(s.begin(),s.end())配合上sort(!)或者next ...

c++stl中的排列函数next_permutation(s.begin(),s.end())配合上sort(!)或者next ...

More to explore