Top 50 Dynamic Programming Java Algorithms Coding Questions (Udemy.com)
Solve the top 50 Dynamic Programming Java Algorithms Questions to ace Coding Interview and Competitive Programming.
Created by: Raunak Jain
Last updated April 2023
What you will learn
- Understand what is Dynamic Programming, Recursion, and back tracking
- Learn the criteria to classify a dynamic programming question using optimal substructure and overlapping subproblems
- Master the art of recursion and learn how to convert a recursion problem to dynamic programming
- Solve top 50 handpicked dynamic programming Java algorithm questions asked in competitive programming and programming interviews
- Solve each question in recursive, top-down (memoization) and bottom-up (tabulation) dynamic programming approaches
- Get one step closer to competitive programming and acing coding interview
How it compares
Against the other 86 rated Udemy courses in Data Structures and Algorithms on CourseDuck:
- Rating4.6 out of 5higher than 66% of them
- Reviews49#85 of 87 by number of reviews
- Length18.2 hourslonger than 69% of them
- Last updatedApril 2023earlier than 51% of them
Course Description
Welcome to this course!
Here, you will go through a "journey" of the Top 50 Dynamic Programming Java Algorithm questions that are asked in coding interviews as well as competitive programming.
So let's start by answering the most fundamental questions:
What is Dynamic Programming Algorithm?
Dynamic programming is a powerful optimization technique for plain recursion problems. If you can break down a problem into simpler sub-problems (optimal substructure) and these sub-problems are repetitive in nature, then you can convert this problem into a Dynamic Programming Solution.
In this course, we will start with a basic introduction to Dynamic Programming. We will understand what Dynamic Programming is and how to find out whether a recursive problem can be solved using Dynamic Programming.
Can Dynamic Programming solve all problems?
Dynamic Programming cannot solve all problems. The dynamic programming algorithm is meant to solve only those problems that have optimal substructure and overlapping subproblem properties.
Why is Dynamic Programming faster?
Dynamic Programming is faster because we break down a problem into various smaller subproblems. Then, we store the solutions of these subproblems in a table or cache whenever we encounter them first. Hence, if we get the same subproblem later on, instead of recomputing it, we fetch it from the storage and return it. This saves us a lot of time.
Moreover, since a Dynamic Programming algorithm required optimal substructure property. It means that the best solution to the initial subproblem can be constructed from the optimal solutions of its subproblems. Hence, we can easily eliminate the need to consider all the possible subproblem solutions. This reduces the time complexity of the algorithm.
What will be our approach when you take this course?
We will solve the 50 most popular Dynamic Programming examples asked in coding interviews. For each question, our approach will be:
Understand the problem statement with a few examples.
Check if it can be solved recursively.
Build a recursion tree and determine the recursive pattern.
Check for optimal substructure and overlapping subproblem properties using the recursive tree.
Derive the recursive code for the solution.
Using the recursive code, convert the problem to a Top-Down (Memoization) approach.
Then solve the same problem with the Bottom-Up (Tabulation) approach.
Come up with an optimized DP solution if possible (space or time).
Discuss the time and space complexities of all the approaches.
Don't worry, we won't bore you with slides and PPTs. We will understand each algorithm using a whiteboard explanation of approaches and the code in parallel. This will help you to be more expressive during your interviews.
In any interview, the interviewer wants to know the thinking or the approach that you are going to take to solve a problem given by him. Thus, it becomes very necessary to keep reciting the approach out loud. The format of these videos will help you to think out loud and will promote discussions and you will be able to question back the interviewer.
What are the top 50 Dynamic Programming Problems or Examples asked in Coding Interview and Competitive Programming that we will discuss?
Lecture 1: Introduction
Lecture 2: Introduction to Dynamic Programming - Recursive, Memoization, Tabulation
Lecture 3: Binomial Coefficient Problem
Lecture 4: Maximize the Cut Segments
Lecture 5: Friends Pairing Problem
Lecture 6: Rod Cutting Problem
Lecture 7: Gold Mine Problem
Lecture 8: Nth Catalan Number
Lecture 9: Largest Sum Contiguous SubArray (Kadane's Algorithm)
Lecture 10: Climbing Stairs
Lecture 11: Maximum Sum Increasing Subsequence
Lecture 12: House Robber
Lecture 13: Subset Sum Problem
Lecture 14: Longest Common Subsequence
Lecture 15: Longest Increasing Subsequence
Lecture 16: Weighted Job Scheduling
Lecture 17: Maximum Length Chain of Pairs
Lecture 18: Maximum Sum of Disjoint Pairs with Specific Differences
Lecture 19: Egg-Dropping Problem
Lecture 20: Minimum Removals from Array to make Max - Min <= K (DP + Binary Search)
Lecture 21: Maximum Size Square Sub-Matrix with all 1s
Lecture 22: Largest Area Rectangular Sub-Matrix with Equal 0's and 1's
Lecture 23: Largest Rectangular Sub-Matrix whose Sum is 0
Lecture 24: Maximum Sum Rectangle in a 2D Matrix
Lecture 25: Longest Palindromic Subsequence
Lecture 26: Longest Palindromic Substring
Lecture 27: Longest Alternating Subsequence
Lecture 28: Count All Palindromic Subsequences in a Given String
Lecture 29: Longest Common Substring
Lecture 30: Longest Subsequence such that the Difference Between Adjacent is 1
Lecture 31: Longest Repeated Subsequence
Lecture 32: Word Break Problem
Lecture 33: Permutation Coefficient Problem
Lecture 34: Minimum Number of Jumps to Reach End
Lecture 35: Partition Problem
Lecture 36: Count Derangements
Lecture 37: Count the Number of Ways to Reach a Given Score in a Game
Lecture 38: Palindromic Partitioning
Lecture 39: Matrix Chain Multiplication
Lecture 40: Maximum Subsequence Sum such that no 3 Elements are Consecutive
Lecture 41: Painting the Fence
Lecture 42: Largest Independent Set of Nodes in a Binary Tree
Lecture 43: Count Balanced Binary Trees of Height H
Lecture 44: Coin Change Problem
Lecture 45: Optimal Strategy for a Game
Lecture 46: Unique Paths
Lecture 47: Minimum Cost Path
Lecture 48: Coin Game Winner Where Every Player Has 3 Choices
Lecture 49: Edit Distance
Instructor Details
- 4.6 Rating
49 Reviews
Raunak Jain
Hi! I'm an expert Udemy instructor, and a senior software developer currently working with a Fortune 50 company. With years of experience in the field, I'm a seasoned Java developer with a passion for problem-solving using data structures and algorithms.
I'm skilled in working with professional tools like Spring Boot, ELK, SQL, and DevOps tools such as Ansible, Git, and Terraform.
I specialize in creating courses on topics such as data structures and algorithms, with a particular focus on advanced algorithms like dynamic programming, Recursion, Backtracking, and data structures like Binary Trees, Graphs, and Linked Lists. I have an innate ability to explain complex concepts in a simplified and easy-to-understand manner, making them accessible to learners of all levels.
Join my courses and take your software development skills to the next level. Get ready to discover the secrets of problem-solving with data structures and algorithms and learn how to use professional tools like a pro. Start learning today and embark on an exciting journey of growth and development.
More Data Structures and Algorithms courses
JavaScript Data Structures & Algorithms + LEETCODE Exercises (2026)
4.9 (4,131 Reviews)
Provider: Udemy
Time: 9.6h
$119.99
Data Structures & Algorithms: Coding Interview Masterclass (2026)
4.8 (15,900 Reviews)
Provider: Udemy
Time: 10.8h
$99.99
Master the Coding Interview: Big Tech (FAANG) Interviews (2026)
4.8 (6,000 Reviews)
Provider: Udemy
Time: 36.8h
$109.99
Mastering critical SKILLS in Algorithms using C++: Part 1 (2023)
4.8 (598 Reviews)
Provider: Udemy
Time: 18.9h
$84.99
Reviews
By Abdul Sohail Ahmed on 5/12/2023
Taking this course has helped me to gain a better understanding of programming concepts and prepared me for interviews.
By Devansh Pandey on 5/3/2023
its a good course for a programmer who is not a beginner.
By Sumanto Pal on 4/21/2023
saaxy , cracked DESHAW after binge watching all videos one night. I owe my joining bonus to you
By Karmveer Singh on 4/18/2023
I watched your Udemy learning videos and was delighted to find that one of the questions from your course came up in my recent technical interview. Thanks to your excellent teaching, I was able to answer the question with confidence. I highly recommend your course .
By Rupesh Sanjeev Pingale on 4/16/2023
Very good course
By Sneha Das on 4/16/2023
While starting i had no idea about dynamic programming.My mentor is teaching so smoothly its helping me to gain knowledge about it.
By Bhanu Prakash on 4/16/2023
I thought the course was well organized, clear and easy to follow and the instructor was very knowledgeable with excellent presentation skills.
By Bantumilli Rahena on 4/15/2023
In this course we can get the course from scratch and some important questions in the interview point of view....it's really awesome
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 92 / 100





