Topic: Dynamic Programming Problem / Level: intermediate

Problem: Find the longest subsequence where the difference between adjacent elements is divisible by k using dynamic programming.

Run the code to see the output here...