Available question text
Count the ways to split a binary array into contiguous subarrays each containing exactly one '1'. This equals the product, over each pair of consecutive 1s, of (number of zeros between them + 1), modulo 10^9+7 (return 0 if there are no 1s).
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 2750. Ways to Split Array Into Good Subarrays
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source