Skip to content
geeksforgeeks
  • 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
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Algorithms
2k+ articles
Matrix
1.2k+ articles
Recursion
1k+ articles
Combinatorial
690+ articles
subsequence
420+ articles
  1. DSA
  2. >
  3. Algorithms
  4. >
  5. Dynamic Programming

Dynamic Programming

1.5k+ posts
Dynamic Programming or DP
Last Updated: 18 March 2025
Dynamic Programming is an algorithmic technique with the following properties.It is mainly an optimization over plain recursion. Wherever we...read more
image
Algorithms
Dynamic Programming
DSA
Coin Change - Minimum Coins to Make Sum
Last Updated: 14 March 2025
Given an array of coins[] of size n and a target value sum, where coins[i] represent the coins of different denominations. You have an infin ...read more
Amazon
Morgan Stanley
Oracle
Samsung
Snapdeal
Paytm
Accolite
Synopsys
Dynamic Programming
Mathematical
dp-coin-change
DSA
Travelling Salesman Problem using Dynamic Programming
Last Updated: 26 November 2024
Given a2d matrix cost[][]ofsize nwherecost[i][j]denotes the cost of moving fromcity i to city j.The task is to complete atourfromcity 0 (0-b ...read more
Bit Magic
Microsoft
Google
Graph
NPHard
Opera
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
2k+ articles
Matrix
1.2k+ articles
Recursion
1k+ articles
Combinatorial
690+ articles
subsequence
420+ articles
Subset Sum Problem
Last Updated: 15 March 2025
Given an array arr[] of non-negative integers and a value sum, the task is to check if there is a subset of the given array whose sum is equ...read more
image
Arrays
Amazon
Adobe
Drishti-Soft
subset
Dynamic Programming
Adobe-Question
DSA
Bellman–Ford Algorithm
Last Updated: 14 April 2025
Given a weighted graph with V vertices and E edges, along with a source vertex src, the task is to compute the shortest distances from the s...read more
image
Graph
Dynamic Programming
Shortest Path
DSA
Longest Palindromic Substring
Last Updated: 10 March 2025
Given a string s, the task is to find the longest substring which is a palindrome. If there are multiple answers, then return the first appe ...read more
Strings
Microsoft
Amazon
Groupon
Qualcomm
Samsung
Accolite
Zoho
MakeMyTrip
Visa
Dynamic Programming
strings
DSA
Sieve of Eratosthenes
Last Updated: 17 March 2025
Given a number n, print all primes smaller than or equal to n. It is also given that n is a small number.Examples:Input: n = 10Output: 2 3 5...read more
image
Qualcomm
VMWare
MAQ Software
Dynamic Programming
Mathematical
GE
sieve
Prime Number
number-theory
DSA
Floyd Warshall Algorithm
Last Updated: 16 April 2025
Given a matrix dist[][] of size n x n, where dist[i][j] represents the weight of the edge from node i to node j. If there is no direct edge,...read more
image
Samsung
Graph
Dynamic Programming
Shortest Path
DSA
Floyd-Warshall
0/1 Knapsack Problem
Last Updated: 12 March 2025
Given n items where each item has some weight and profit associated with it and also given a bag with capacity W, [i.e., the bag can hold at...read more
image
Snapdeal
Zoho
MakeMyTrip
Visa
Dynamic Programming
knapsack
DSA
Matrix Chain Multiplication
Last Updated: 22 March 2025
Given the dimension of a sequence of matrices in an array arr[], where the dimension of the ith matrix is (arr[i-1] * arr[i]), the task is t...read more
image
Microsoft
Amazon
Dynamic Programming
Matrix
matrix-chain-multiplication
DSA
Coin Change - Count Ways to Make Sum
Last Updated: 27 April 2025
Given an integerarray of coins[] of size nrepresenting different types of denominations and an integer sum, the task is to count all combina...read more
image
Microsoft
Morgan Stanley
Samsung
Snapdeal
Paytm
Accolite
Dynamic Programming
Greedy
Mathematical
DSA
Longest Common Subsequence (LCS)
Last Updated: 04 March 2025
Given two strings, s1 and s2, the task is to find the length of the Longest Common Subsequence. If there is nocommon subsequence, return0. A...read more
image
Strings
Amazon
Hike
FactSet
Dynamic Programming
subsequence
LCS
strings
DSA
Longest Increasing Subsequence (LIS)
Last Updated: 03 March 2025
Given an array arr[] of size n, the task is to find the length of the Longest Increasing Subsequence (LIS) i.e., the longest possible subseq...read more
image
Amazon
Samsung
Zoho
Binary Search
Dynamic Programming
Searching
LIS
DSA
Nth Fibonacci Number
Last Updated: 15 April 2025
Given a positive integer n, the task is to find the nth Fibonacci number.The Fibonacci sequence is a sequence where the next term is the sum ...read more
Amazon
Snapdeal
MAQ Software
MakeMyTrip
Bloomberg
Dynamic Programming
Mathematical
Fibonacci
series
Modular Arithmetic
matrix-exponentiation
DSA
Maximum Subarray Sum - Kadane's Algorithm
Last Updated: 28 February 2025
Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.Examples:Input: arr[] = {2, 3, -8, 7, -1,...read more
image
Arrays
Microsoft
Amazon
Morgan Stanley
Oracle
Flipkart
Samsung
D-E-Shaw
Walmart
VMWare
Snapdeal
Accolite
Payu
Zoho
Hike
MakeMyTrip
Visa
Housing.com
Ola Cabs
24*7 Innovation Labs
MetLife
FactSet
Teradata
Dynamic Programming
OYO
Amazon-Question
Visa-Question
subarray
subarray-sum
DSA
1 2 3 4 5 6 7 8 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox