Go 0ms O(n) solution
Complexity\n- Time complexity:\nO(n)\n\n- Space complexity:\nO(1)\n\n# Code\n\nfunc removeAlmostEqualCharacters(word string) int {\n    op := 0\n    for i := 0;
# Complexity\n- Time complexity:\n$$O(n)$$\n\n- Space complexity:\n$$O(1)$$\n\n# Code\n```\nfunc removeAlmostEqualCharacters(word string) int {\n    op := 0\n    for i := 0; i+1 < len(word); i++ {\n        if word[i] == word[i+1] || word[i] + 1 == word[i+1] || word[i] == word[i+1] + 1 {\n            op++\n            i++\n        }\n    }\n    return op\n}\n```
['Go']