Jump Game - Leetcode 55 - Dynamic Programming (Python)

  Рет қаралды 5,529

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 8
@GregHogg
@GregHogg 4 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@mjanish9836
@mjanish9836 16 күн бұрын
I am shocked that this is Working and moreover I am flabbergasted because I understood
@tkbeast...7797
@tkbeast...7797 4 ай бұрын
Really helpful to understand the concepts ❤
@GregHogg
@GregHogg 4 ай бұрын
Glad to hear it!
@user-lg9yf7xx2n
@user-lg9yf7xx2n 21 күн бұрын
Hey I had one question...for the base case if i == n-1: we return True.. but what if at last index we have a zero?
@user-lg9yf7xx2n
@user-lg9yf7xx2n 21 күн бұрын
Oh I think it doesn't matter even if the value is 0.. we just need to check if we can reach the last index or not
@saignanadeep670
@saignanadeep670 5 ай бұрын
What about this approach: max=nums[0] for i->1,n if max>=n return True if max
@shihabhasan8959
@shihabhasan8959 Ай бұрын
Great
Coin Change - Leetcode 322 - Dynamic Programming (Python)
15:27
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 14 МЛН
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 93 МЛН
Jump Game - Greedy - Leetcode 55
16:28
NeetCode
Рет қаралды 256 М.
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 215 М.
Learn Python OOP in under 20 Minutes
18:32
Indently
Рет қаралды 107 М.
Pacific Atlantic Water Flow - Leetcode 417 - Graphs (Python)
17:10
House Robber - Leetcode 198 - Dynamic Programming (Python)
13:15
How to Solve ANY LeetCode Problem (Step-by-Step)
12:37
Codebagel
Рет қаралды 300 М.