CPP | Greedy
\nclass Solution {\npublic:\n    int removeAlmostEqualCharacters(string s) {\n        int ans = 0;\n        for(int i = 0; i < s.size() - 1; i += 1) {\n        
```\nclass Solution {\npublic:\n    int removeAlmostEqualCharacters(string s) {\n        int ans = 0;\n        for(int i = 0; i < s.size() - 1; i += 1) {\n            if(abs(s[i] - s[i + 1]) <= 1) {\n                ans += 1;\n                i += 1;\n            }\n        }\n        return ans;\n    }\n};\n```
['Greedy', 'C++']