C++: Dynamic Programming

Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=BZqQvlnyfQQ



Duration: 59:05
441 views
17


"Dynamic programming" means "writing down the solution to smaller problems to solve bigger problems".

Today we did three dynamic programming solutions:
1) Fibonacci (which reduces the running time from exponential to linear)
2) Sum2 (a classic job interview problem where you need to print all pairs of numbers that add up to some number)
3) Gold Hunt (a Google job interview question where you have gold stacked on a chess board and you can only move east and south and have to pick up as much cash as you can by the time you get to the bottom right)