Beats 100% - Easy Self Explanatory Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```java []\nclass Solution {\n    public int removeAlmostEqualCharacters(String word) {\n        \n        int res = 0;\n        boolean pc = false;\n        for(int i=1; i<word.length(); i++){\n            if(!pc && Math.abs(word.charAt(i)-word.charAt(i-1))<=1){\n                res++;\n                pc = true;\n            }else{\n                pc = false;\n            }\n        }\n        return res;\n    }\n}\n```
['Java']