Available question text
Count how many length-n arrays with elements in [1..m] have exactly k prefixes whose prefix sum is even (i.e., the prefix sum parity is even at exactly k positions), returning the answer modulo 10^9+7. The core challenge is modeling parity transitions and using combinatorics/DP to count possibilities efficiently for large n and m.
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 3339. Find the Number of K-Even Arrays
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source