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
    }
}

@@ -513,16 +513,432 @@
 ); // 1%0A
+        System.out.println(prob.numberOfSubstrings(%22abcaaabcaa%22)); // 30%0A        System.out.println(prob.numberOfSubstrings(%22abcaa%22)); // 5%0A        System.out.println(prob.numberOfSubstrings(%22aaabc%22)); // 3%0A        System.out.println(prob.numberOfSubstrings(%22abcbb%22)); // 3%0A        System.out.println(prob.numberOfSubstrings(%22bbabc%22)); // 3%0A        System.out.println(prob.numberOfSubstrings(%22bbabcbbabcbb%22)); // 43%0A
     %7D%0A%7D%0A

Update problem 1358