Dynamic programming interview questions
7 questions on this data structure, most asked first. Reported by candidates in public interview write-ups and reworded by Scrivio. How the reports are counted
Your progress: 0 of 7 done, 0 saved
Find the contiguous subarray with the largest sum.
Reported 92 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2018, geeksforgeeks.org 2018, geeksforgeeks.org 2017
Find the longest substring of a string that reads the same forwards and backwards.
Reported 69 times
Read the solutionStrings and triesExample sources
3 of the write-ups counted: geeksforgeeks.org 2020, geeksforgeeks.org 2016, geeksforgeeks.org 2020
Find the length of the longest increasing subsequence of an array.
Reported 32 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2017, geeksforgeeks.org 2024, geeksforgeeks.org 2021
Find the contiguous subarray whose product is largest.
Reported 29 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2017, geeksforgeeks.org 2017, geeksforgeeks.org 2024
Find the largest sum of array elements such that no two chosen elements are adjacent.
Reported 26 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2024, geeksforgeeks.org 2021, geeksforgeeks.org 2019
Find the length of the longest common subsequence of two strings using dynamic programming.
Reported 20 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2020, geeksforgeeks.org 2020, geeksforgeeks.org 2016
With A = 1, B = 2 and so on, count the ways a string of digits can be decoded into letters.
Reported 15 times
Read the solutionDynamic programmingExample sources
3 of the write-ups counted: geeksforgeeks.org 2016, geeksforgeeks.org 2024, geeksforgeeks.org 2015