Topic: Dynamic Programming Problem / Level: intermediate

Problem: Solve the "Longest Increasing Subsequence with Gaps" problem where gaps between consecutive elements are allowed using dynamic programming.

Run the code to see the output here...