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.2%
Submissions
999
Accepted
611