Available question text
Count how many subarrays of an integer array have an odd sum; because n can be up to 1e5, this requires an O(n) approach using parity counts of prefix sums to compute pairings and return the result modulo 10^9+7.
Related questions
Continue with questions that share topics or the same question type.
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
No company association
Leetcode 1524. Number of Sub-arrays With Odd Sum
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source