Data Structures & Algorithms

Dynamic programming is a way to optimise algorithms by reducing the amount of computation being done. DP algorithms store previous results and reuse them when calculating.