Fibonacci Using DP

Medium
17 views 22 Dec 2025
Compute the nth Fibonacci number using dynamic programming and explain how memoization avoids repeated calculations....

Climbing Stairs Problem

Medium
17 views 22 Dec 2025
Given n stairs find the number of distinct ways to climb to the top when you can climb 1 or 2 steps at a time using DP....

0/1 Knapsack Problem

Medium
15 views 22 Dec 2025
Given weights and values determine the maximum value that can be obtained in a knapsack of fixed capacity using DP....

Subset Sum Problem

Medium
20 views 22 Dec 2025
Determine whether there exists a subset of a given set with a sum equal to a given value using dynamic programming....

Longest Common Subsequence

Medium
19 views 22 Dec 2025
Find the length of the longest common subsequence between two strings using DP table construction....

Longest Increasing Subsequence

Medium
18 views 22 Dec 2025
Find the length of the longest increasing subsequence in an array using dynamic programming....

Coin Change (Minimum Coins)

Medium
17 views 22 Dec 2025
Given coin denominations find the minimum number of coins required to make a given amount using DP....

Coin Change (Number of Ways)

Medium
17 views 22 Dec 2025
Find the total number of ways to make a given amount using infinite supply of coins with DP....

Edit Distance

Medium
17 views 22 Dec 2025
Compute the minimum number of operations required to convert one string into another using DP....

Matrix Chain Multiplication

Medium
19 views 22 Dec 2025
Determine the minimum number of scalar multiplications needed to multiply a chain of matrices using DP....

Rod Cutting Problem

Medium
23 views 22 Dec 2025
Given a rod of length n determine the maximum profit by cutting the rod using DP....

House Robber Problem

Medium
19 views 22 Dec 2025
Find the maximum amount of money that can be robbed without robbing adjacent houses using DP....

Maximum Subarray Sum (DP)

Medium
24 views 22 Dec 2025
Find the maximum sum of a contiguous subarray using dynamic programming approach....

Partition Equal Subset Sum

Medium
13 views 22 Dec 2025
Determine whether an array can be partitioned into two subsets with equal sum using DP....

Palindrome Partitioning (Minimum Cuts)

Medium
25 views 22 Dec 2025
Find the minimum number of cuts needed to partition a string into palindromic substrings using DP....

Unique Paths in Grid

Medium
23 views 22 Dec 2025
Find the number of unique paths from top-left to bottom-right of a grid using DP....

Unique Paths with Obstacles

Medium
19 views 22 Dec 2025
Find the number of unique paths in a grid containing obstacles using dynamic programming....

Decode Ways

Medium
16 views 22 Dec 2025
Given a numeric string count the number of ways it can be decoded into letters using DP....

Egg Dropping Problem

Medium
17 views 22 Dec 2025
Find the minimum number of attempts needed to find the critical floor using DP....

Minimum Path Sum

Medium
18 views 22 Dec 2025
Find the minimum path sum from top-left to bottom-right in a grid using DP....