Given two strings a and b. In one operation, you can change any character in a or b to any lowercase English letter.
Return the minimum number of operations required to satisfy at least one of the following three conditions:
a is strictly smaller in alphabetical order than every letter in b.b is strictly smaller in alphabetical order than every letter in a.a and b consist of only one distinct letter (the exact same letter across all characters in both strings).
Constraints:
a.length, b.length
a and b consist only of lowercase English letters.
Given two strings a and b. In one operation, you can change any character in a or b to any lowercase English letter.
Return the minimum number of operations required to satisfy at least one of the following three conditions:
a is strictly smaller in alphabetical order than every letter in b.b is strictly smaller in alphabetical order than every letter in a.a and b consist of only one distinct letter (the exact same letter across all characters in both strings).
Constraints:
a.length, b.length
a and b consist only of lowercase English letters.