Topic: Dynamic Programming Problem / Level: intermediate

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

Run the code to see the output here...