3614. Find the Number of K-Even Arrays

Medium
Dynamic Programming

Description

Hints

Hint 1
Use dynamic programming.
Hint 2
Store whether the last element was even or odd.

Statistics

Acceptance
61.5%
Submissions
1,046
Accepted
643