Gas Station or Circular Tour problem

  Рет қаралды 14,397

Code with Alisha

Code with Alisha

Күн бұрын

Пікірлер: 42
@Satya-g5t
@Satya-g5t 3 ай бұрын
Ha ha ha very funny, your Birbal story, it completely made me happy. 😄 , I am still only half way through, stopped the video to comment, will resume now and see the rest of solution.
@habittolearn2423
@habittolearn2423 Жыл бұрын
After watching this video, I thought I was being silly for thinking of a solution that was in the complex direction. Thanks for providing such an approachable and simple option.
@yadav_utkar8h
@yadav_utkar8h Жыл бұрын
Great solution. You made me realize that sometimes we need to think simply rather than overcomplicating the problem.
@putramakatita8814
@putramakatita8814 Жыл бұрын
You are the best on simplify the complex. Great teacher!!
@TheJack3120
@TheJack3120 2 жыл бұрын
Thank you for consider case where we can have multiple starting points. I have watched other solution videos on same problem but none of them considered the edge cases. Also explanations was really great.
@yusenpeng
@yusenpeng 2 жыл бұрын
At 14:30, I suddenly realized that why I got time limit exceeded. ALL stations IN BETWEEN are insufficient and I don't need to check any of them. Thank u sm!
@purukrishnamurthy2960
@purukrishnamurthy2960 Жыл бұрын
You're problem solving skills are amazing...thank you so much for the vids
@satyamgupta6030
@satyamgupta6030 Жыл бұрын
tysm alisha, ur videos are the only source I look for please keep them coming in future. ur explainations are just different and very easy to understand.
@sz.110
@sz.110 2 жыл бұрын
what an amazing style of teaching really appreciable. just wow
@vineetsrivastava388
@vineetsrivastava388 Жыл бұрын
Brilliantly explained...no one can defeat u in explanation...open a coaching institute 😎
@nibaronkumar2484
@nibaronkumar2484 Жыл бұрын
WOW, your explanation is lit. 🔥🔥
@arjunprasad1071
@arjunprasad1071 2 жыл бұрын
Good explanation 👏I had read solutions on leetcode, but I wasn't able to get that part as to why we aren't checking from the starting point again whether we can complete the circuit or not. Thanks for clearing it👌👌
@modhugumudiushasri2330
@modhugumudiushasri2330 Жыл бұрын
great solution and amazing explanation mam.
@EntertainerOnline
@EntertainerOnline Жыл бұрын
Awesome solution. Thanks !
@abhisheksharma8757
@abhisheksharma8757 3 жыл бұрын
Good explanation
@sbunny323
@sbunny323 5 ай бұрын
your code is checking the gas value which is greater than the cost value at the respective index , for the example [1,2,3,4,5] and the [3,4,5,1,2] 4 > 1 at index 3 and you didn't use the total to calculate the total of the cost in the first approach but isn't that necessary in order to get correct answer take an example when 4 > 1 the total can be < 0 in that condition the code return ans but it should return -1 or iam i missing something?
@anupam6045
@anupam6045 2 жыл бұрын
woho!! great explanation
@harshwardhanchougule3039
@harshwardhanchougule3039 Жыл бұрын
Thanks! Very well explained
@BACSShaileshShettar
@BACSShaileshShettar 11 ай бұрын
u made it so easy!
@maripivenumadhav605
@maripivenumadhav605 2 жыл бұрын
nice explanation mam🤩🤩 which company are you working in???
@AINikunjGour
@AINikunjGour 2 жыл бұрын
microsoft
@whatwelearntoday
@whatwelearntoday 2 жыл бұрын
Great explanation!
@aqua6150
@aqua6150 2 жыл бұрын
Nice Explaination..
@zyro9922
@zyro9922 9 ай бұрын
Very helpful
@rosonerri-faithful
@rosonerri-faithful 2 жыл бұрын
Fine explanation diii
@aryannagraj4681
@aryannagraj4681 2 жыл бұрын
i think i will get placement because of you🤪
@probabilitycodingisfunis1
@probabilitycodingisfunis1 2 жыл бұрын
Haha..good luck Aryan! Wish the best 🥳
@prasenjitdaripa9492
@prasenjitdaripa9492 2 жыл бұрын
Didi tussi great ho !!!
@Rajat_maurya
@Rajat_maurya 2 жыл бұрын
thank you
@kasthurishravankumarhpc
@kasthurishravankumarhpc 25 күн бұрын
Breaaaakdown
@Idukhan-jj9kc
@Idukhan-jj9kc 2 жыл бұрын
Tqs alli
@beonthego8725
@beonthego8725 2 жыл бұрын
I love you
@pravhatray7418
@pravhatray7418 2 жыл бұрын
Di DSA padhaa do mujee bohot tension hai
@aryansonwani7061
@aryansonwani7061 Жыл бұрын
Ez question
@maharajak6578
@maharajak6578 3 жыл бұрын
First
@shubhamrao5952
@shubhamrao5952 3 жыл бұрын
Yeh kya hai??? Samjhaya kuch aur code chaap diya kuch aur??
@shubhamrao5952
@shubhamrao5952 3 жыл бұрын
Giving dislike for poor explanation of code .
@007yashkumar2
@007yashkumar2 2 жыл бұрын
larchat hai ka
@_S_AmitPandey
@_S_AmitPandey 2 жыл бұрын
shi to tha, jo samjhaya wahi code kiya h probably you should have watched the video carefully
@stormshadow76
@stormshadow76 2 жыл бұрын
@@shubhamrao5952 if you can't solve atleast let's encourage for someone who teaches us...
@dhruvsingh5190
@dhruvsingh5190 2 жыл бұрын
Jo explain kiya hai usi ko code kiya hai, shi to hai🤷🏻‍♂️🤷🏻‍♂️
@santoshbhupati3579
@santoshbhupati3579 2 жыл бұрын
Thank you
Circular tour of petrol pumps| Tricky problem Love Babbar DSA sheet
20:09
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Какой я клей? | CLEX #shorts
0:59
CLEX
Рет қаралды 1,9 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Gas Station | Leetcode 134 | Greedy
14:37
Ayushi Sharma
Рет қаралды 24 М.
Gas Station - Greedy - Leetcode 134 - Python
15:47
NeetCode
Рет қаралды 153 М.
Gas Station | LeetCode 134 | C++, Java, Python
23:02
Knowledge Center
Рет қаралды 32 М.
15 Minimum Difference Element in a Sorted Array
16:56
Aditya Verma
Рет қаралды 105 М.
Sliding Window Maximum || Maximum of all subarrays of size k
16:16
Code with Alisha
Рет қаралды 18 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН