Available question text
Given an array of integers and a target value, find or count contiguous (consecutive) subarrays whose sum equals the target. The core challenge is to do this efficiently — use prefix sums with a hashmap to handle negative values (or a sliding-window for nonnegative arrays).
Related questions
Continue with questions that share topics or the same question type.
- Binary Subarrays With Sum
Coding
- Consecutive Numbers Sum
Coding · Enumeration · Math
- Find Subarrays With Equal Sum
Coding
- Find Three Consecutive Integers That Sum to a Given Number
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Meta
Leetcode 3284. Sum of Consecutive Subarrays
Reported Sep 30, 2026 · 1 source report
SENIOR
Source snapshot: Nov 12, 2026
View source