Topic: Array Problem / Level: advanced

Problem: Find the longest subarray where the sum of elements is divisible by both their digit cubes and index cubes using a dynamic programming approach.

Run the code to see the output here...