Gas Station | Live Coding with Explanation | Leetcode - 134

Поділитися
Вставка
  • Опубліковано 19 вер 2024
  • Detailed Explanation 134 Gas Station Leetcode problem.
    Join this channel to get access to perks:
    / @algorithmsmadeeasy
    Get Discount on GeeksforGeeks courses (practice.geeks...) by using coupon code: ALGOMADEASY
    To support us you can donate
    UPI: algorithmsmadeeasy@icici
    Check out our other popular playlists:
    Questions you might like:
    ✅✅✅[ Tree Data Structure] : • Tree Data Structure
    ✅✅✅[ Graphs Data Structure] : • Graph Data Structure
    ✅✅✅[ February Leetcoding Challenge] : • February Leetcoding Ch...
    ✅✅✅[ January Leetcoding Challenge] : • January Leetcoding Cha...
    ✅✅✅[ February Leetcoding Challenge] : • February Leetcoding Ch...
    ✅✅✅[ March Leetcoding Challenge] : • March Leetcoding Chall...
    ✅✅✅[ December Leetcoding Challenge] : • December Leetcoding Ch...
    ✅✅✅[ November Leetcoding Challenge] : • November Leetcoding Ch...
    ✅✅✅[ August Leetcoding Challenge] : • August LeetCoding Chal...
    ✅✅✅[ July Leetcoding challenges] : • July LeetCoding Challe...
    ✅✅✅[ June Leetcoding challenges] : www.youtube.co...
    ✅✅✅[ May Leetcoding challenges] : • May LeetCoding Challen...
    ✅✅✅ Cracking the Coding Interview - Unique String: • Cracking the Coding In...
    Problem Link: leetcode.com/p...
    Code: github.com/Alg...
    If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful.
    #coding #leetcode #programminglife #programmingisfun #programmer #tech #software #codinglife #leetcode

КОМЕНТАРІ • 27

  • @sandeshsinha9174
    @sandeshsinha9174 Рік тому +8

    This problem is so hard that I had to pass 23 gases while trying to solve this.
    Because of this, forget about the problem but I was feeling that my body had became a gas station.
    Leetcode please block such hard questions and save air pollution. Thank you!

    • @thesoulofsugar1634
      @thesoulofsugar1634 Рік тому +2

      🤣🤣🤣🤣

    • @lokeshkaduskar4652
      @lokeshkaduskar4652 11 днів тому

      Rajma chawal khaya ya Chola Bhatura?

    • @sandeshsinha9174
      @sandeshsinha9174 11 днів тому

      @@lokeshkaduskar4652 mooli ke parathe with chhole and dahi. Din bhar Diwali jaise phataake phoot rahe the bhaiyya.

    • @sandeshsinha9174
      @sandeshsinha9174 11 днів тому

      Kaduskar bhaava.. mi tar mhanto ki roj vada paav khaava. Health department ne vada pav he roj cha jevan mhanun declare karun taakava

  • @harshal101096
    @harshal101096 2 роки тому +4

    what a great explanation of this problem. loved it

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  2 роки тому

      Thank you!! 🥳🥳
      Please subscribe to the channel!! and share with your friends!! 🙏✅

  • @ChandraShekhar-by3cd
    @ChandraShekhar-by3cd 2 роки тому +2

    Thanks a lot for the beautiful presentation.

  • @SRUSHTIHIRVE-h2l
    @SRUSHTIHIRVE-h2l 2 місяці тому

    Great explaination , keep uploading such good explainations

  • @sankhadipbera9271
    @sankhadipbera9271 2 роки тому +1

    Thanks 👍

  • @jackofalltradesg
    @jackofalltradesg 6 місяців тому +1

    great explanation 🤩

  • @Chloe-si2hq
    @Chloe-si2hq Рік тому +5

    Isn’t last column you added (1-8) = -7?

  • @venkatmk2608
    @venkatmk2608 2 роки тому +1

    great explanation

  • @amirtv106
    @amirtv106 2 роки тому +1

    Best explanation

  • @jiganeshpatil1472
    @jiganeshpatil1472 2 роки тому +1

    Today's Daily Challenge 🤗 Thank You

    • @AlgorithmsMadeEasy
      @AlgorithmsMadeEasy  2 роки тому

      You're welcome 😊
      Do share it with you friends and don't forget to subscribe :)

  • @vcs649
    @vcs649 8 місяців тому

    wonderful

  • @rajivojha4887
    @rajivojha4887 Рік тому +1

    what if the diff was [-3,-3,-3,3,2]. the algorithm would return the index of 3 even though the circular root is not possible.

    • @syte_y
      @syte_y 4 місяці тому

      you need to ensure that the total fuel_amount >= total cost. If you don't verify that then you may get some misleading results

  • @mayankgupta329
    @mayankgupta329 2 роки тому +1

    Nice explaination, just watched a 50 min video explaining this question 😅

  • @ZeeshanAli-tx2ji
    @ZeeshanAli-tx2ji Рік тому +2

    10:38 ...for I 1-8 =-7 not 7 ... & hence not possible to circuit