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
60.2%
Submissions
940
Accepted
566