LeetCode 1653 | Medium | Minimum Deletions to Make String Balanced
LeetCode 1653. Minimum Deletions to Make String Balanced Intuition What is a balanced string? In this problem, for every $i < j$ there is no $s[i] = b$ and $s[j] = a$. We can conclude: the bal...