Question DSA-REC-0069
HardWhat does memoising a recursive function that has overlapping subproblems change?
- A.
Nothing
- B.
It makes it use less memory
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Recursion and Backtracking question
What does memoising a recursive function that has overlapping subproblems change?
Nothing
It makes it use less memory
Sign up free to see the answer and a step-by-step explanation.
It removes recursion
Each distinct subproblem is solved once, often turning exponential time into polynomial