Topic: Dynamic Programming Problem / Level: beginner

Problem: Compute the longest zigzag subsequence in an array using dynamic programming.

Run the code to see the output here...