Topic: Dynamic Programming Problem / Level: intermediate

Problem: Solve the "Longest Zigzag Path in a Grid" problem where the path alternates between increasing and decreasing values using dynamic programming.

Run the code to see the output here...