Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the longest zigzag path in a grid where the path alternates between increasing and decreasing values using dynamic programming.

Run the code to see the output here...