L4. Jump Game - I | Greedy Algorithm Playlist

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • Find problem link, notes in step 12: takeuforward.o...
    Follow me on socials: linktr.ee/take...

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

  • @Josuke217
    @Josuke217 4 หลายเดือนก่อน +34

    Waiting for strings ...

    • @KartikeyTT
      @KartikeyTT 3 หลายเดือนก่อน +2

      do you come to menace and monk streams

    • @Josuke217
      @Josuke217 3 หลายเดือนก่อน +1

      @@KartikeyTT no

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

      @@Josuke217 okay

  • @GungunSaluja-sy6br
    @GungunSaluja-sy6br 3 หลายเดือนก่อน +2

    waiting for String playlist ❤ and till now all the videos of greedy are osm

  • @UECAshutoshKumar
    @UECAshutoshKumar 12 วันที่ผ่านมา +1

    Thank you

  • @top_10_2.O
    @top_10_2.O 2 หลายเดือนก่อน +2

    We can go from last index to 1st
    If we can't go then false else true

  • @nikhilkolliboyina9831
    @nikhilkolliboyina9831 4 หลายเดือนก่อน +1

    Hey striver,in DSA a to z course there is no video on Java collections

  • @KKKK-pl8yf
    @KKKK-pl8yf 4 หลายเดือนก่อน +1

    Stack and Queue ki playlist daaldo bro please, eagerly waiting. Mail bhi kia thha poochhne ke lie but you did not reply

  • @ayushgaurabh8604
    @ayushgaurabh8604 3 หลายเดือนก่อน +1

    awesome

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

    Thankyou so much Striver for all you efforts throughout in delivering us so much valuable content. Any student / working professional can now be able to transition their career without paying money for courses.
    Would also like your insights on the point :
    While preparing for interviews most of the aspirants are going through the videos solely and solving the question after completely watching the video. And also are feeling lazy trying to solve the question on our own. What is the best way to complete any topic without being lazy and how should an aspirant approach any topic/playlist?

    • @abhavgoel9390
      @abhavgoel9390 2 หลายเดือนก่อน +1

      by not watching the video first and try to solve the question beforehand. And you talk about laziness to solve a question that help you land a job bro, you shouldn't be even asking this question if you were motivated enough

  • @Professor-du2pf
    @Professor-du2pf 4 หลายเดือนก่อน

    Mind Benging brooo

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

    ty sir

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

    prefix coding pattern

  • @great.Indian.culture
    @great.Indian.culture หลายเดือนก่อน

    Bhai kya padhate ho ap never understood anything in my life what u taught

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

    can anyone explain me how is this greedy

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

      yes, for every step the mindset to jump maximum so its greedy method

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

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

    waste 3500 on pw java course which is not 1% of your free resource

  • @Professor-du2pf
    @Professor-du2pf 4 หลายเดือนก่อน +28

    After watching the DP Approach this greedy code is far very easy .

  • @ritikkumarsingh5902
    @ritikkumarsingh5902 4 หลายเดือนก่อน +10

    Striver, your DSA Sheet is absolutely phenomenal! It's been an invaluable resource for mastering data structures and algorithms. Looking forward to the remaining topics, especially the much-anticipated sections on strings and heaps. Thanks for all your hard work!

  • @LokeshSharmaCP
    @LokeshSharmaCP 4 หลายเดือนก่อน +9

    i thought about recursion approach but this is really easy and optimal

  • @Paradox_1
    @Paradox_1 4 หลายเดือนก่อน +9

    Radhe Radhe bhaiya 💖

  • @roshan3224
    @roshan3224 6 วันที่ผ่านมา

    Hello guys !!! please pay attention iterate the i or n upto size not size -1 else it will not pass the few test cases :)

  • @rudrakshamishra2668
    @rudrakshamishra2668 19 วันที่ผ่านมา

    please make a solution on the right answer

  • @rudrakshamishra2668
    @rudrakshamishra2668 19 วันที่ผ่านมา +1

    yes this solution is not passed on the[3,2,1,0,4] this case on leet code only 146 / 172 testcases passed

    • @naitikmalav776
      @naitikmalav776 17 วันที่ผ่านมา +1

      it does, but try for loop until last element
      for(int i=0; i maxIndex)
      return false;
      maxIndex = max(maxIndex, i+nums[i]);
      }

  • @SibiRanganathL
    @SibiRanganathL 18 วันที่ผ่านมา

    bruh

  • @gugulothsrilakshmi8729
    @gugulothsrilakshmi8729 4 หลายเดือนก่อน +1

    please,anyone can explain intution behind it, why he is not using dp here

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

      This is similar to Buy and sell stock 1 here basically we need to figure out whether we can able to jump to last index or not so let's say as he mention from particular index I he can jump to at max 6 and try to traversing the array by calculating from that index what is the jump possobile at any moment lets at index I he can go to max of x but to reach till I the max possible jump we can take is y if y

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

    bool canJump(vector& nums) {
    int current=0;
    int available=0;
    for(int i=0;iavailable){
    available=current;
    }
    else if(available==0){
    return false;
    }

    available--;

    }
    return true;
    }

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

    please bring the string video first .A humble request from us

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

    please bring the string video first .A humble request from us

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

    Please add the links of these new videos to the A2Z Dsa sheet

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

    please add link to this video in your a2z sheet

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

    "UNDERSTOOD BHAIYA!!"

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

    waiting for Strings playlist

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

    Thank you very much

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

    understood

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

    thanks for the solution

  • @KKKK-pl8yf
    @KKKK-pl8yf 4 หลายเดือนก่อน

    Good morning striver !

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

    Understood

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

    Understood

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

    Best solution

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

    Understood

  • @riyanshbiswas
    @riyanshbiswas หลายเดือนก่อน +1

    "Someone did touch you" sounds so wrong haha

  • @shilparaghav6831
    @shilparaghav6831 27 วันที่ผ่านมา

    This above explained solution is not working for [3,2,1,0,4] if we are starting from starting index

    • @harshitsinghbaghel1789
      @harshitsinghbaghel1789 3 วันที่ผ่านมา +1

      what's wrong in this it will be false in answer will not be able to reach till the last

  • @SiddharthSingh-un8ue
    @SiddharthSingh-un8ue 3 หลายเดือนก่อน

    what if there are multiple zeroes in the array; than the method doesn't seem to work?

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

    paaji tussi great ho taufa
    kabul karo

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

      😂😂