Jump Game - Leetcode 55 - Dynamic Programming (Python)

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Master Data Structures & Algorithms for FREE at AlgoMap.io/
    Code solutions in Python, Java, C++ and JS for this can be found at my GitHub repo here: github.com/gah...
    Complete DSA Pathway Zero to Hero: • Data Structures & Algo...
    Please check my playlists for free DSA problem solutions:
    • Fundamental DSA Theory
    • Array & String Questions
    • 2 Pointers Questions
    • Sliding Window Questions
    • Binary Search Questions
    • Stack Questions
    • Linked List Questions
    • Tree Questions
    • Heap Questions
    • Recursive Backtracking...
    • Graph Questions
    • Dynamic Programming (D...
    My Data Science & ML TH-cam Playlist: • Greg's Path to Become ...
    Learn Python and Data Science FASTER at mlnow.ai :)
    Support the content: / @greghogg
    Follow me on Instagram: / greghogg5
    Connect with me on LinkedIn: / greghogg
    Follow me on TikTok: / greghogg5
    Coursera Plus: imp.i384100.ne...
    My Favorite Courses:
    Data Structures & Algorithms:
    UCalifornia San Diego DSA: imp.i384100.ne...
    Stanford Algorithms: imp.i384100.ne...
    Python Data Structures: imp.i384100.ne...
    Meta Coding Interview Prep: imp.i384100.ne...
    Python:
    UMichigan Python for Everybody: imp.i384100.ne...
    Python Mastery from MLNOW.ai: mlnow.ai/cours...
    Google IT Automation w/ Python: imp.i384100.ne...
    Web Dev / Full Stack:
    Meta Front-End Developer: imp.i384100.ne...
    IBM Full Stack Developer: imp.i384100.ne...
    Meta Back-End Developer: imp.i384100.ne...
    John Hopkins HTML, CSS & JS: imp.i384100.ne...
    IBM DevOps: imp.i384100.ne...
    Cloud Development:
    AWS Fundamentals: imp.i384100.ne...
    GCP Cloud Engineer: imp.i384100.ne...
    Microsoft Azure Fundamentals: imp.i384100.ne...
    Game Development:
    Michigan State Unity Development: imp.i384100.ne...
    UColorado C++ for Unreal Engine: www.coursera.o...
    SQL & Data Science:
    SQL by MLNOW.ai: mlnow.ai/cours...
    Python for Data Science by MLNOW.ai: mlnow.ai/cours...
    Google Data Analytics: imp.i384100.ne...
    IBM Data Science: imp.i384100.ne...
    IBM Data Engineer: imp.i384100.ne...
    Machine Learning & AI:
    ML Mastery at MLNOW.ai: mlnow.ai/cours...
    ML w/ Andrew Ng: www.coursera.o...
    Deep Learning w/ Andrew Ng: imp.i384100.ne...

ความคิดเห็น • 11

  • @GregHogg
    @GregHogg  6 หลายเดือนก่อน

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

  • @RaviPrakash-dz9fm
    @RaviPrakash-dz9fm 10 วันที่ผ่านมา +1

    How do i develop intuition for greedy solutions in interviews?

  • @tkbeast...7797
    @tkbeast...7797 7 หลายเดือนก่อน +1

    Really helpful to understand the concepts ❤

    • @GregHogg
      @GregHogg  7 หลายเดือนก่อน

      Glad to hear it!

  • @mjanish9836
    @mjanish9836 3 หลายเดือนก่อน

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

  • @user-lg9yf7xx2n
    @user-lg9yf7xx2n 3 หลายเดือนก่อน

    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 3 หลายเดือนก่อน

      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 8 หลายเดือนก่อน

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

    • @LocksVid
      @LocksVid 2 หลายเดือนก่อน

      Using max as a variable name and also using it as a function is a huge red flag and is super unreadable, consider a better naming convention

    • @seeker511
      @seeker511 หลายเดือนก่อน

      You will get TLE

  • @shihabhasan8959
    @shihabhasan8959 4 หลายเดือนก่อน

    Great