Concept Flow - Memoization to Optimize Recursion
Start Recursive Call
Check Memo for Result?
Yes→Return Memoized Result
No
Compute Result Recursively
Store Result in Memo
Return Computed Result
The flow shows how recursion first checks if the answer is already saved (memo). If yes, it returns it immediately. Otherwise, it computes, saves, and returns the result.
