Gas Station | LeetCode 134 | C++, Java, Python
Вставка
- Опубліковано 19 вер 2024
- LeetCode Solutions: • LeetCode Solutions | L...
Github Link: github.com/Kno...
*** Best Books For Data Structures & Algorithms for Interviews:*********
1. Cracking the Coding Interview: amzn.to/2WeO3eO
2. Cracking the Coding Interview Paperback: amzn.to/3aSSe3Q
3. Coding Interview Questions - Narasimha Karumanchi: amzn.to/3cYqjkV
4. Data Structures and Algorithms Made Easy - N. Karumanchi: amzn.to/2U8FrDt
5. Data Structures & Algorithms made Easy in Java - N. Karumanchi: amzn.to/2U0qZgY
6. Introduction to Algorithms - CLR - Cormen, Leiserson, Rivest: amzn.to/2Wdp8rZ
*****************************************************************************
September LeetCoding Challenge | Problem 23 | Gas Station | 23 September,
Facebook Coding Interview question,
google coding interview question,
leetcode,
Gas Station,
Gas Station c++,
Gas Station Java,
Gas Station python,
Gas Station solution,
134. Gas Station,
#CodingInterview #LeetCode #Google #Amazon #GasStation
your are the only one who gives proper explanation of this question...Thank you.
Glad to help
right
Your in depth explanations are outstanding!! Thank you.
This mathematical explanation of the intuition behind this O(N) approach was lacking in every video I saw! Now I get it
I would like to thank you for your straightforward explanation videos. I am a junior student in computer engineering and your simple way of explaining tough concepts has helped me to strengthen my ability to think better in problem-solving. Moreover, I have learned much of Java and Python syntax from your videos. Thanks for your efforts, and we are waiting for more leetcode challenges
Thanks a lot for the compliment. All the Best.
Thank you sir for the video. The way you explain a problem, nobody can beat that! :D
So nice of you
thanks for this much detailed explanation, it indeed cleared all my doubts...
Glad to hear that
It was amazing explanation. I was having doubt why we r not checking complete circle back to start to know whether its valid or not. The doubt got crystal clear after watching this. Thanks alot.
Best explanation , thank you for this video. 👌👌👍👍👍👍
Glad you liked it.
Thanks for the awesome explanation! I got the intuition from your video! Before this I was struggling to get the proper intuition.
very clear explanation ,thank you very much
wow the proof made everything clear. THANK YOU
Great Explanation Sir! Pls keep uploading more videos.
Thanks.
Pretty nice explanation sir.......
Thanks
Any video was not explain why we were not checking from the front again. Thanks for the help!
Very good Explanation, Thanks Sir
Thanks and welcome
Thanks, Your explanation style is fantastic ..make more videos releted this type of questions .
Thank you, I will
Fabulous video .....thanks
please continue this great work by explaining more interview problems :)
Thanks.
thanks a lot
great content
Thanks.
Great explanation... Thank you
Glad it was helpful!
cogently explained :)
Thanks.
Thank you so much for such a great explanation !!!
Welcome!
Thank a ton..❤️
Welcome.
14:20 -- The moment you started x, y ,z it seems you hurried towards explaining. Clearly more clarity was required while putting the equations. How is X+Y+Z >=0. Clearly the way you showed it looked like X, Y and Z are distances but you started comparing those with fuel. You never mentioned this. Instead i was forced to stop and listen again and again to make sense of it. Seems you just hurried without thinking that someone else might get a disconnect there.
I too got disconnected from there then finally I moved to the code and boom🤣 it wass easyyyyy
amazing
Thank you
Welcome
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!
Well explained sir
How do people expect this to be solved very first time when asked in an interview? This is not test of technical knowledge .. its test of mathematical analysis skills.
That's the thing, no company expects you to magically know all algorithms and ds...you have to practice, a LOT, so you can recognize the patterns hidden inside questions.
It's like showing up to a marathon without being in top shape; you won't make it (or with some luck you might barely, haha).
can someone explain how the part from 13:40 to 17:00 shows that it arrives back at the starting point?
what the pupose of total surplus?
🔥🔥
Please put netflix interview question
I think you have to work on your English
bekar