package leetcode;

/**
 * https://leetcode.com/problems/minimum-deletions-to-make-string-balanced/
 */
public class Problem1643 {
    public int minimumDeletions(String s) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1643 prob = new Problem1643();
        System.out.println(prob.minimumDeletions("aababbab")); // 2
        System.out.println(prob.minimumDeletions("bbaaaaabb")); // 2
        System.out.println(prob.minimumDeletions("bbbbbbbaaaaabb")); // 5
        System.out.println(prob.minimumDeletions("abbbbbbbbbbbb")); // 0
        System.out.println(prob.minimumDeletions("abab")); // 1
    }
}

@@ -647,16 +647,284 @@
 ); // 1%0A
+        System.out.println(prob.minimumDeletions(%22abaababa%22)); // 3%0A        System.out.println(prob.minimumDeletions(%22bbb%22)); // 0%0A        System.out.println(prob.minimumDeletions(%22abbbababbab%22)); // 3%0A        System.out.println(prob.minimumDeletions(%22aabbab%22)); // 1%0A
     %7D%0A%7D%0A

Update problem 1643