Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Algorithms
1.9k+ articles
Matrix
1.2k+ articles
Recursion
1k+ articles
Combinatorial
690+ articles
subsequence
420+ articles
DSA
>
Algorithms
>
Dynamic Programming
Dynamic Programming
1.5k+ posts
Popular Articles
Recent Articles
Greedy Approach vs Dynamic programming
Last Updated: 23 April 2024
Greedy approach and Dynamic programming are two different algorithmic approaches that can be used to solve optimization problems. Here are t
...read more
Dynamic Programming
Greedy
knapsack
Difference Between
DSA
Steps to solve a Dynamic Programming Problem
Last Updated: 23 December 2024
Steps to solve a Dynamic programming problem:Identify if it is a Dynamic programming problem.Decide a state expression with the Least parame
...read more
Dynamic Programming
DSA
Palindrome Substrings Count
Last Updated: 08 March 2025
Given a string s, the task is to count all palindromic substrings of length more than one.Examples:Input: s = "abaab"Output: 3Explanation: P
...read more
Strings
Amazon
Morgan Stanley
SAP Labs
Ola Cabs
Dynamic Programming
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Algorithms
1.9k+ articles
Matrix
1.2k+ articles
Recursion
1k+ articles
Combinatorial
690+ articles
subsequence
420+ articles
Wildcard Pattern Matching
Last Updated: 20 November 2024
Given a text txt and a wildcard pattern pat, implement a wildcard pattern matching algorithm that finds if the wildcard pattern is matched w
...read more
Strings
Microsoft
Amazon
Walmart
Zoho
InMobi
United Health Group
Ola Cabs
Dynamic Programming
Pattern Searching
DSA
Stock Buy and Sell – Max 2 Transactions Allowed
Last Updated: 19 March 2025
In the stock market, a person buys a stock and sells it on some future date. Given the stock prices ofndays in an arrayprices[ ]. Find out t
...read more
Dynamic Programming
Mathematical
DSA
Word Break
Last Updated: 26 March 2025
Given a string s and y a dictionary ofnwordsdictionary, check if s can be segmented into a sequence of valid words from the dictionary, sepa
...read more
Microsoft
Amazon
Google
Walmart
Zoho
MAQ Software
IBM
Dynamic Programming
DSA
Optimal Strategy for a Game
Last Updated: 03 December 2024
Given an arrayarr[]of sizen which represents a row of n coins of values V1 . . . Vn, where n is even. We play a game against an opponent by
...read more
Amazon
Hike
Linkedin
Dynamic Programming
Mathematical
Game Theory
DSA
Maximum Subarray Sum using Divide and Conquer algorithm
Last Updated: 24 December 2024
Given an arrayarr[],the task is to find the subarray that has the maximum sum and return its sum.Examples:Input: arr[] = [2, 3, -8, 7, -1, 2
...read more
Arrays
Amazon
Dynamic Programming
Divide and Conquer
subarray
Junglee Games
subarray-sum
DSA
Optimal Binary Search Tree
Last Updated: 26 December 2024
Given a sorted array key [0.. n-1] of search keys and an array freq[0.. n-1] of frequency counts, where freq[i] is the number of searches fo
...read more
Dynamic Programming
Binary Search Tree
DSA
Palindrome Partitioning
Last Updated: 26 March 2025
Given a string s, the task is to find the minimum number of cuts needed for palindrome partitioning of the given string. A partitioning of t
...read more
Strings
Amazon
Dynamic Programming
palindrome
DSA
Binomial Coefficient
Last Updated: 17 February 2025
Given an integer values n and k, the task is to find the value of Binomial Coefficient C(n, k).A binomial coefficient C(n, k) can be defined
...read more
Dynamic Programming
Mathematical
binomial coefficient
DSA
Min Cost Path
Last Updated: 22 April 2025
You are given a 2D matrix cost[][] of dimensions m × n, where each cell represents the cost of traversing through that position. Your goal
...read more
Amazon
Samsung
MakeMyTrip
Dynamic Programming
Mathematical
Matrix
DSA
Optimal Substructure Property in Dynamic Programming | DP-2
Last Updated: 01 December 2024
The following are the two main properties of a problem that suggest that the given problem can be solved using Dynamic programming:1) Overla
...read more
Dynamic Programming
DSA
Maximum size square sub-matrix with all 1s
Last Updated: 07 November 2024
Given a binary matrixmatof sizen*m, the task is to find out the maximum length of a side of asquaresub-matrix with all 1s.Example:Input: mat
...read more
Amazon
Samsung
Dynamic Programming
Matrix
DSA
Stickler Thief
Last Updated: 20 March 2025
Stickler the thief wants to loot money from a societyhavingnhouses in a single line. He is a weird person and follows a certainrulewhen loot
...read more
Arrays
Amazon
Yahoo
Walmart
Paytm
Accolite
Oxigen Wallet
Dynamic Programming
OYO
DSA
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !