Search⌘ K
AI Features

Binary Subarrays With Sum

Binary Subarrays With Sum gives you a binary array and a target total. Count the non-empty contiguous subarrays whose elements add up to that goal.

Statement

You are given a binary array, nums, and an integer, goal. Your task is to return the number of ...