You are given a binary string s. An operation consists of changing any character in s from '$0$' to '$1$' or from '$1$' to '$0$'.
A string is considered alternating if no two adjacent characters are identical.
Return the minimum number of operations needed to make s alternating.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.
You are given a binary string s. An operation consists of changing any character in s from '$0$' to '$1$' or from '$1$' to '$0$'.
A string is considered alternating if no two adjacent characters are identical.
Return the minimum number of operations needed to make s alternating.
Constraints:
s.length
s[i] is either '$0$' or '$1$'.