Concept Flow - Memoization Top Down DP
Start with problem input
Check if result in memo?
Yes→Return memoized result
No
Compute result recursively
Store result in memo
Return computed result
The flow starts by checking if the answer is already saved. If yes, return it. If no, compute recursively, save it, then return.