← Back to Cheat Sheets
Recursion And Dp
Table of Contents
# Dynamic Programming
# 0) Concept
# 0-1) Types
# 0-2) Pattern
# 1) General form
When you hear a problem beginning with the following statements, it’s often (though not always) a good candidate for recursion: "Design an algorithm to compute the nth … :; "Write code to list the first n … :; "Implement a method to compute all…:; and so on. (Crack the coding interview Vers 6 pp.130)