Topic: Dynamic Programming Problem / Level: beginner

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

Run the code to see the output here...