1422. Maximum Score After Splitting a String
Easy
Last updated
Was this helpful?
Easy
Last updated
Was this helpful?
Given a string s
of zeros and ones, return the maximum score after splitting the string into two non-empty substrings (i.e. left substring and right substring).
The score after splitting a string is the number of zeros in the left substring plus the number of ones in the right substring.