Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

Top 50 Dynamic Programming Interview Questions

The most frequently asked Dynamic Programming questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
357companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Dynamic ProgrammingStart here. 24 questions · ~600 min
Maximum Sum Contiguous SubarrayEasy
Practice
Recently asked

Use Kadane's algorithm to find the contiguous subarray with the largest sum in linear time.

Dynamic ProgrammingArraysGreedyMetaPublicis GroupeSmbc Global Foundation
Longest Common SubstringHard
Practice

Find the longest contiguous substring shared by two strings using dynamic programming.

Dynamic ProgrammingArraysStringsRentableEncompass HealthMORSE
Longest Increasing SubsequenceMedium
Practice
Recently asked

Find the length of the longest strictly increasing subsequence in an array using dynamic programming and binary search.

Dynamic ProgrammingArraysSearchingUnited AirlinesNetAppCredgenics
Longest Palindromic SubstringHard
Practice
Recently asked

Find the earliest longest palindromic substring using Manacher's linear-time string algorithm.

Dynamic ProgrammingRobert SlackFFarm FamilyStarr Companies
More Dynamic Programming questions with a free account
2
Recursion16 questions · ~400 min
Reverse a Singly Linked ListEasy
Practice
Recently asked

Problem Given the head of a singly linked list, reverse the list, and return the new head node. The linked list is defined as follows: python class ListNo...

RecursionStackDynamic ProgrammingConstellation EnergyMeta ITSchneider Electric
Longest Common SubsequenceHard
Practice
Recently asked

Use dynamic programming to reconstruct a longest common subsequence shared by two Meta content strings.

RecursionDynamic ProgrammingStringsUnifyAdtalem Global EducationVirtual Vocations
Compute Nth Fibonacci NumberEasy
Practice
Recently asked

Compute the nth Fibonacci number using an iterative dynamic programming approach with O(n) time and O(1) space.

RecursionMathDynamic ProgrammingAAnnalectExperianAdvance Programs
More Recursion questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
3
Hash Tables4 questions · ~100 min
More Hash Tables questions with a free account
4
More topics6 questions · ~150 min
Maximum Subarray Using KadaneEasy
Practice
Recently asked

Compute the maximum contiguous subarray sum in O(n) time using Kadane's Algorithm.

Basic AlgorithmsDynamic ProgrammingArraysJJP Morgan ChaseRupeekPymetrics
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.