Top 50 Dynamic Programming Interview Questions
The most frequently asked Dynamic Programming questions across all roles and companies, ranked by real interview frequency. Updated weekly.
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...
Alten
ConnectiCare
GlobantUse recursion on left and right subtrees to compute the height of a binary tree.
First Orion
Divine
ABC NewsUse Kadane's algorithm to find the contiguous subarray with the largest sum in linear time.
Meta
McKinsey &
BookingValidate a parentheses string using a stack to ensure matching bracket types and correct nesting in O(n) time.
Salesforce
Ntt Data Europe & Latam
InformaticaExplain how IEnumerable and IQueryable differ in execution model, filtering behavior, and when each should be used.
Addison Group
Ltimindtree
AcumaticaCompute the maximum contiguous subarray sum in O(n) time using Kadane's Algorithm.
Micro1Sign up to see every question
Create a free account to unlock this list and practice real interview questions.
Open any question for its full solution and discussion.
Browse all questions →