Topic: Dynamic Programming Problem / Level: intermediate

Problem: Solve the "Maximum Length of Alternating Subsequence III" problem where the subsequence alternates between positive and negative elements with specific conditions using dynamic programming.

Run the code to see the output here...