C++ | CPP | 100% FASTER | 86.00% STORAGE
\nclass Solution {\npublic:\n    bool areAlmostEqual(string s1, string s2) {\n        vector<char> v2,v1;\n        int n = s1.size();\n        for(int i = 0;i <
```\nclass Solution {\npublic:\n    bool areAlmostEqual(string s1, string s2) {\n        vector<char> v2,v1;\n        int n = s1.size();\n        for(int i = 0;i < n;i++){\n            if(s1[i] != s2[i]){\n                v1.emplace_back(s1[i]);\n                v2.emplace_back(s2[i]);\n            }\n        }\n        if(v1.size() == 0) return true;\n        else if(v1.size() != 2) return false;\n        else if(v1[0] == v2[1] && v1[1] == v2[0]) return true;\n        else return false;\n    }\n};\n```\n![image](https://assets.leetcode.com/users/images/847442ba-a75c-4e41-80b4-dd6efae0520a_1650099254.0762439.png)\n
['C', 'C++']