☑️ [C++] || Set & Map
\nclass Solution {\npublic:\n    int similarPairs(vector<string>& words) {\n        map<set<char>,int> m;\n        for(auto& itr : words){\n            set<char
```\nclass Solution {\npublic:\n    int similarPairs(vector<string>& words) {\n        map<set<char>,int> m;\n        for(auto& itr : words){\n            set<char> s;\n            for(auto& i : itr){\n                s.insert(i);\n            }\n            ++m[s];\n        }\n        int p=0;\n        for(auto& itr : m){\n            int t = itr.second;\n            if(t>1){\n                p += t*(t-1)/2;\n            }\n        }\n        return p;\n    }\n};\n```
['C']