Given a string s consisting of zeros and ones, divide it into two non-empty substrings, left and right, such that their concatenation equals s.
The score of a split is defined as the total count of zeros in left plus the total count of ones in right.
Return the maximum score achievable across all possible splits.
Constraints:
s.length
s consists of characters '$0$' and '$1$' only.
Given a string s consisting of zeros and ones, divide it into two non-empty substrings, left and right, such that their concatenation equals s.
The score of a split is defined as the total count of zeros in left plus the total count of ones in right.
Return the maximum score achievable across all possible splits.
Constraints:
s.length
s consists of characters '$0$' and '$1$' only.