You are given a string word.
Two characters are considered almost equal if they are the same or adjacent in the alphabet. For instance, 'a' and 'b' are almost equal, and 'a' and 'a' are almost equal.
In one operation, you can change any character in word to any lowercase English letter.
Return the minimum number of operations required so that word contains no adjacent almost equal characters.
Constraints:
word.length
word consists only of lowercase English letters.
You are given a string word.
Two characters are considered almost equal if they are the same or adjacent in the alphabet. For instance, 'a' and 'b' are almost equal, and 'a' and 'a' are almost equal.
In one operation, you can change any character in word to any lowercase English letter.
Return the minimum number of operations required so that word contains no adjacent almost equal characters.
Constraints:
word.length
word consists only of lowercase English letters.