Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the longest subsequence in an array where adjacent elements are either odd or multiples of 3 using dynamic programming.

Run the code to see the output here...