Topic: Dynamic Programming Problem / Level: beginner

Problem: Find the maximum length of a subarray with alternating even and odd elements.

Run the code to see the output here...