Тёмный

Minimum Number of Arrows to Burst Balloons 🔥| Leetcode 452 | Greedy | Sorting 

Ayushi Sharma
Подписаться 45 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@PuneetKumar-uq4ru
@PuneetKumar-uq4ru 2 года назад
Thanks a lot 😊 , feels like because of you I will go consistency solving problem everyday.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome Rohit😄😄🥺
@ChandraShekhar-by3cd
@ChandraShekhar-by3cd 2 года назад
Thanks a lot for the great explanation and consistency!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome Chandra, glad they are helpful :)
@TalhaTabrez7
@TalhaTabrez7 7 месяцев назад
thank you! understood it well, was close to my intuition, but i didn't think about sorting the arrays within and was thinking the other way!
@AyushiSharmaDSA
@AyushiSharmaDSA 7 месяцев назад
Welcome! 😄 glad it was helpful
@borse2982
@borse2982 Год назад
Thank you for explaining this problem in easier way..
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
You are most welcome🤗
@thesaurabh62057
@thesaurabh62057 2 года назад
due to u,i got more confidence in coding
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Thank you, this means a lot 🤗
@gauravchauhan7195
@gauravchauhan7195 Год назад
Great explanation.
@thegreekgoat98
@thegreekgoat98 Год назад
Very nice explanation! Understood perfactly.
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
Glad it was helpful!🤗🤗
@everytimecricket8884
@everytimecricket8884 Год назад
Clearly explained video and explanation
@SoumyaRanjanSahoo-kq4ez
@SoumyaRanjanSahoo-kq4ez 7 месяцев назад
nice explanation... very easy to undertand
@AyushiSharmaDSA
@AyushiSharmaDSA 7 месяцев назад
Thank you Soumya 😊
@ayushjain386
@ayushjain386 2 года назад
Thanx, for new approach ,i am doing this question ,merge interval
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome, glad it was helpful :)
@RohitSaini52945
@RohitSaini52945 2 года назад
Thanks Ayushi! You are doing great job. Just one feedback - Before going into the actual solution please try to provide a dry run on any test case so that the question will be more clear to us.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Hi Rohit, thanks sure, will keep in mind :)
@SuryaChallagali
@SuryaChallagali 2 года назад
daily its a motivation, doing daily challenges with you.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Great :)
@shatakshivishnoi916
@shatakshivishnoi916 Год назад
clear explanation🙌
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
Glad you think so!🤗
@jeeldasvani5015
@jeeldasvani5015 2 года назад
grt explanation ayushi as always
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Thank you, glad it was helpful :)
@RishabSharma6969
@RishabSharma6969 7 месяцев назад
Thanks didi , great explaination.
@AyushiSharmaDSA
@AyushiSharmaDSA 7 месяцев назад
Welcome 🤗 glad it was helpful
@Rahulyadav-oh3yp
@Rahulyadav-oh3yp 2 года назад
I feel u solve the imp and problems whose chances of coming in interviews is mots! do u have any list of problems concatinated somehwere so that i solve those? like over some doc?
@sundarp7552
@sundarp7552 2 года назад
Clearly explained. Thank you for your video
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome :) glad it was helpful
@phaneendhrachinta7295
@phaneendhrachinta7295 Год назад
Very Informative, Thank You
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
Glad it was helpful!🤗🤗🤩
@desihiphop4998
@desihiphop4998 2 года назад
Di consistency ke liye respect++ !!!!!!!!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
🥺🥺🥺 thanks mate
@smile8510
@smile8510 Год назад
Nice Explanation!
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
Thanks 😊
@shreekrishna3453
@shreekrishna3453 2 года назад
wow, great explanation
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Thank you, glad it was helpful :)
@AshwaniKumar-im6zb
@AshwaniKumar-im6zb 2 года назад
Thanks Ayushi. It helps me alot.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome Ashwani, glad it is helpful :)
@Darshan-p5r5k
@Darshan-p5r5k 7 месяцев назад
thank you aisha akka
@SavitarOP
@SavitarOP 2 года назад
OP Solution
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Thank you, glad it was helpful :)
@jaicev8412
@jaicev8412 Месяц назад
7 ,12 is also overlapping.. why we cant burst it ?
@sejalmah
@sejalmah 2 года назад
Thanks for being consistent !
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome, glad the videos are helpful :)
@siddharthamishra7598
@siddharthamishra7598 Год назад
Thanks so much for the video !!!!
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
You are so welcome!🤗
@kholiyamails1257
@kholiyamails1257 Год назад
thanks sis aag lgadi dont stop 😅
@AyushiSharmaDSA
@AyushiSharmaDSA Год назад
Thanks yrrr🤩🥹
@raj_kundalia
@raj_kundalia Год назад
thank you!
@puneetkaur3061
@puneetkaur3061 2 года назад
Didi I wanted to ask you what effect does declaration of comparator inside and outside class have on complexity ?
@ganeshkamath89
@ganeshkamath89 2 года назад
There is no difference in the complexity
@rohit_700
@rohit_700 2 года назад
Is this some kind of series', Found your channel on LinkedIn!!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
It's leetcode daily challenge :)
@darshantrivedi5390
@darshantrivedi5390 2 года назад
Hii Ayushi dii, can you tell me How to get intership in good startup off campus ?
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Hi Darshan, keep looking for openings and if opening is there, then check if the job requirements matches your resume. In some startups, they ask DSA and in some they ask related to development or whatever skill they are looking for, so you need to prepare accordingly :)
@darshantrivedi5390
@darshantrivedi5390 2 года назад
@@AyushiSharmaDSA ohk thanks
@sumanshekhar8110
@sumanshekhar8110 10 месяцев назад
It took some time to understand the if condition part, nevertheless nice explaination.
@AyushiSharmaDSA
@AyushiSharmaDSA 9 месяцев назад
thank you :)
@pranavkumarparihar1397
@pranavkumarparihar1397 2 года назад
Thanks di
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
Welcome, glad it was helpful :)
@rishabhbatra3022
@rishabhbatra3022 2 года назад
why we not sort according to start, why with the end?
@AyushiSharmaDSA
@AyushiSharmaDSA 2 года назад
That can also be done :) try doing it with a test case
@SoumikGhosh-ef1jn
@SoumikGhosh-ef1jn 5 месяцев назад
Maam I have tried writing down the solution in java : class Solution { public int findMinArrowShots(int[][] points) { Arrays.sort(points,(a,b)-> a[1]- b[1]); int end=points[0][1]; int arrows=1; for(int i=1;iend) { ++arrows; end =points[i][1]; } } return arrows; } } but just 1 test case is not getting executed : points = [[-2147483646,-2147483645],[2147483646,2147483647]] Output : 1 Expected : 2 Please help me out in rectifying the issue in my code ma'am.
@anshvashisht8519
@anshvashisht8519 Год назад
anyone has java solution with same approach?
@yashchamoli8695
@yashchamoli8695 Год назад
class Solution { public int findMinArrowShots(int[][] points) { Arrays.sort(points,(a,b)->a[1]-b[1]); int arrows=1; int end=points[0][1]; for(int i=1;iend){ end= points[i][1]; arrows++; } } return arrows; } } but dont know why it fails in 1 case [[-2147483646,-2147483645],[2147483646,2147483647]] this one
@jaipurite8119
@jaipurite8119 Год назад
int findMinArrowShots(vector& points) { int ans=1; sort(points.begin(), points.end()); int xend=points[0][1]; for(int i=1; i points[i][1])?points[i][1]:xend; } } return ans; }
@maddycoder1294
@maddycoder1294 Год назад
@samlinus836
@samlinus836 Год назад
Nice xplanation sis However if you are workin on java... * [[-2147483646,-2147483645],[2147483646,2147483647]] this testcase might fail if you use Arrays.sort(intervals, (a, b) -> a[0] - b[0]); to sort the array... Now I did a quick analysis on why it doesn't work? You would understand it clearly if you clearly understand the working mechanism of compare(a-b) #Analysis if(a-b) is > 0 means, b comes before a else if (a-b) b)||(a
Далее
🎙А НЕ СПЕТЬ ли мне ПЕСНЮ?🕺🏼
3:06:10
String to Integer atoi 🔥| Leetcode 8 | String
16:59
MIN ARROWS NEEDED TO BURST BALLOONS | LEETCODE 452
26:09
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Gas Station | Leetcode 134 | Greedy
14:37
Просмотров 23 тыс.