Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the maximum product of a contiguous subarray where adjacent elements alternate between positive and negative using dynamic programming.

Run the code to see the output here...