Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the longest subsequence where adjacent elements have a difference of at least 2 using dynamic programming.

Run the code to see the output here...