package leetcode;

/**
 * https://leetcode.com/problems/binary-subarrays-with-sum/
 */
public class Problem930 {
    public int numSubarraysWithSum(int[] A, int S) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem930 prob = new Problem930();
    }
}

@@ -289,16 +289,104 @@
 m930();%0A
+        System.out.println(prob.numSubarraysWithSum(new int%5B%5D%7B1, 0, 1, 0, 1%7D, 2)); // 4%0A
     %7D%0A%7D%0A

Update problem 930