Matrix DP problem solved via recursion (4D DP)
Filed under Amazon
The question
A hard matrix dynamic-programming problem. The candidate began with a recursive approach, which turned out to be a 4D DP formulation.
No write-up yet. Related questions below have one.
Related Amazon questions
Collected from public candidate posts and coding forums. Updated Nov 2026.