Topic: Dynamic Programming Problem / Level: beginner

Problem: Find the longest subsequence of alternating even and odd numbers in an array using dynamic programming.

Run the code to see the output here...