#include <bits/stdc++.h> using namespace std; #include <stack> class Solution { public: set<string> res; void dfs( string str, string tmp, vector<bool> &vis ) { if (tmp.size() == str.size()) { res.insert(tmp); return; } for (int i = 0; i < str.length(); i++) { //如果未选择 ...