Jump Game - Leetcode 55 - Dynamic Programming (Python)

preview_player
Показать описание


Please check my playlists for free DSA problem solutions:

My Favorite Courses:

Data Structures & Algorithms:

Python:

Web Dev / Full Stack:

Cloud Development:

Game Development:

SQL & Data Science:

Machine Learning & AI:
Рекомендации по теме
Комментарии
Автор

Master Data Structures & Algorithms For FREE at AlgoMap.io!

GregHogg
Автор

I am shocked that this is Working and moreover I am flabbergasted because I understood

mjanish
Автор

Really helpful to understand the concepts ❤

tkbeast...
Автор

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?

lgyfxxn
Автор

What about this approach:
max=nums[0]
for i->1, n
if max>=n return True
if max<i return False
max=max(max, nums[i]+i)

return false

saignanadeep
join shbcf.ru