Menu
Tech Interview Handbook LogoTech Interview Handbook
Getting StartedBlogGitHub
Tech Interview Handbook LogoTech Interview Handbook
  • Getting Started
  • Blog
  • GitHub
  • Preface
    • Introduction
    • Landscape
  • Job Application
    • Resume
    • Cover Letter
  • Interview Process
    • Interview Formats
    • Self Introduction
    • Coding Round
      • Overview
      • Picking a Language
      • Study and Practice
      • Best Practice Questions
      • During the Coding Interview
      • Cheatsheet
      • Coding Signals
      • Mock Interviews
      • Cheatsheet (Interviewer)
    • Behavioral Round
      • Overview
      • STAR Format
      • Common Questions
      • Psychological Tricks
    • Questions To Ask
  • Post Interview
    • Understanding Compensation
    • Negotiation
  • Algorithms
    • Introduction
    • Array
    • Binary
    • Dynamic Programming
    • Geometry
    • Graph
    • Hash Table
    • Heap
    • Interval
    • Linked List
    • Math
    • Matrix
    • Object-Oriented Programming
    • Permutation
    • Queue
    • Recursion
    • Sorting and Searching
    • Stack
    • String
    • Tree
    • Trie

Dynamic Programming

Study links#

  • Demystifying Dynamic Programming
  • Dynamic Programming – 7 Steps to Solve any DP Interview Problem

Notes#

Dynamic Programming (DP) is usually used to solve optimization problems. The only way to get better at DP is to practice. It takes some amount of practice to be able to recognize that a problem can be solved by DP.

Sometimes you do not need to store the whole DP table in memory, the last two values or the last two rows of the matrix will suffice.

Recommended LeetCode questions#

  • 0/1 Knapsack
  • Climbing Stairs
  • Coin Change
  • Longest Increasing Subsequence
  • Longest Common Subsequence
  • Word Break Problem
  • Combination Sum
  • House Robber and House Robber II
  • Decode Ways
  • Unique Paths
  • Jump Game
Edit this page
Last updated on 12/31/2019 by PranavPuranik
Previous
« Binary
Next
Geometry »
  • Study links
  • Notes
  • Recommended LeetCode questions
Copyright © 2020 Yangshun Tay. Built with Docusaurus.