Topic: Dynamic Programming Problem / Level: intermediate

Problem: Solve the "Longest Path with Alternating Values" problem where you find the longest path in a matrix where the values alternate between positive and negative using dynamic programming.

Run the code to see the output here...