Concept Flow - Overlapping Subproblems and Optimal Substructure
Problem
→Break into subproblems
Check if subproblem solved?
Yes→Use stored solution
No
Compute subproblem
Store solution
Combine subproblems for final answer
The problem is divided into smaller subproblems. If a subproblem was solved before, reuse its answer. Otherwise, solve it, store the result, and combine all to get the final solution.