3922. Minimum Flips to Make Binary String Coherent
You are given a binary string
s.A string is considered coherent if it does not contain
"011"or"110"as subsequences.In one operation, you can flip any character in
s('0'to'1'or'1'to'0').Return an integer denoting the minimum number of operations required to make
scoherent.
1 | class Solution { |