Balanced strings are strings that contain an equal count of 'L' and 'R' characters.
Given a balanced string s, partition it into the maximum possible number of balanced substrings.
Return the maximum number of balanced substrings that can be obtained from the split.
Constraints:
s.length
s[i] is either 'L' or 'R'
s is a balanced string
Balanced strings are strings that contain an equal count of 'L' and 'R' characters.
Given a balanced string s, partition it into the maximum possible number of balanced substrings.
Return the maximum number of balanced substrings that can be obtained from the split.
Constraints:
s.length
s[i] is either 'L' or 'R'
s is a balanced string