Search⌘ K
AI Features

Binary Subarrays With Sum

Binary Subarrays With Sum asks you to count non-empty, contiguous subarrays in a binary array whose elements add up to a specified goal.

Statement

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