filmov
tv
Jump Game: Minimum number of jumps PART 1 | Memoization | Java | Recursion, Dynamic Programming

Показать описание
Jump Game: Minimum number of jumps PART 1 | Top Down DP/Memoization | Java | Data Structures, Top Down Dynamic Programming - Software Engineering Interview/Placement/Leetcode Questions - MAANG/FAANG, Facebook, Google, Amazon, Microsoft, Netflix
QUESTION - Given an array of non-negative integers nums, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of jumps.
WHAT IS COVERED IN THIS VIDEO:
1. Understand the problem
2. Initial Approach - Greedy. Always jump till maximum possible index. Why it doesn't work
3. Making observations and deriving Recursive Relation
4. Writing Recursive Relation into Algorithm
5. Identifying Base/Terminating conditions
6. Converting the Recursion algorithm into Top Down Dynamic Programming Algorithm - Dealing with Overlapping problems
7. Time and Space complexity analysis
8. Code walkthrough
9. Extension - Returning the jump path - How to solve it
Playlists:-
If you feel that the content is useful, please SUBSCRIBE!
QUESTION - Given an array of non-negative integers nums, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of jumps.
WHAT IS COVERED IN THIS VIDEO:
1. Understand the problem
2. Initial Approach - Greedy. Always jump till maximum possible index. Why it doesn't work
3. Making observations and deriving Recursive Relation
4. Writing Recursive Relation into Algorithm
5. Identifying Base/Terminating conditions
6. Converting the Recursion algorithm into Top Down Dynamic Programming Algorithm - Dealing with Overlapping problems
7. Time and Space complexity analysis
8. Code walkthrough
9. Extension - Returning the jump path - How to solve it
Playlists:-
If you feel that the content is useful, please SUBSCRIBE!