Dynamic Programming, Programming, Algorithms, Data, Coding Interviews.
sub-problems scenario. If subproblems are repeated then the given problem can be solved using dynamic programming. But the above approach may take little time because we have to go through two critical processes: designing the recursive solution and drawing a recursion tree! A critical question is: