Given a string s, you can perform the following operation any number of times:
i in s, and let c be the character at s[i].c to the left of i, if one exists.c to the right of i, if one exists.
Return the minimum possible length of s after performing any number of operations.
Constraints:
s.length
s contains only lowercase English letters
Given a string s, you can perform the following operation any number of times:
i in s, and let c be the character at s[i].c to the left of i, if one exists.c to the right of i, if one exists.
Return the minimum possible length of s after performing any number of operations.
Constraints:
s.length
s contains only lowercase English letters