package leetcode;

/**
 * https://leetcode.com/problems/number-of-substrings-containing-all-three-characters/
 */
public class Problem1358 {
    public int numberOfSubstrings(String s) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1358 prob = new Problem1358();
        System.out.println(prob.numberOfSubstrings("abcabc")); // 10
        System.out.println(prob.numberOfSubstrings("aaacb")); // 3
        System.out.println(prob.numberOfSubstrings("abc")); // 1
        System.out.println(prob.numberOfSubstrings("abcaaabcaa")); // 30
        System.out.println(prob.numberOfSubstrings("abcaa")); // 5
        System.out.println(prob.numberOfSubstrings("aaabc")); // 3
        System.out.println(prob.numberOfSubstrings("abcbb")); // 3
        System.out.println(prob.numberOfSubstrings("bbabc")); // 3
        System.out.println(prob.numberOfSubstrings("bbabcbbabcbb")); // 43
        System.out.println(prob.numberOfSubstrings("bbabcbb")); // 9
    }
}

@@ -998,16 +998,87 @@
 ); // 9%0A
+        System.out.println(prob.numberOfSubstrings(%22abcbbabc%22)); // 15%0A
     %7D%0A%7D%0A

Update problem 1358