Topic: Dynamic Programming Problem / Level: intermediate

Problem: Find the longest subsequence in an array where adjacent elements alternate between multiples of 5 and multiples of 2 using dynamic programming.

Run the code to see the output here...