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

  Рет қаралды 8,166

Ayushi Sharma

Ayushi Sharma

Күн бұрын

Пікірлер: 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 8 ай бұрын
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 8 ай бұрын
Welcome! 😄 glad it was helpful
@borse2982
@borse2982 Жыл бұрын
Thank you for explaining this problem in easier way..
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
You are most welcome🤗
@gauravchauhan7195
@gauravchauhan7195 Жыл бұрын
Great explanation.
@thesaurabh62057
@thesaurabh62057 2 жыл бұрын
due to u,i got more confidence in coding
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you, this means a lot 🤗
@everytimecricket8884
@everytimecricket8884 Жыл бұрын
Clearly explained video and explanation
@thegreekgoat98
@thegreekgoat98 Жыл бұрын
Very nice explanation! Understood perfactly.
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Glad it was helpful!🤗🤗
@SoumyaRanjanSahoo-kq4ez
@SoumyaRanjanSahoo-kq4ez 8 ай бұрын
nice explanation... very easy to undertand
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
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 :)
@RishabSharma6969
@RishabSharma6969 8 ай бұрын
Thanks didi , great explaination.
@AyushiSharmaDSA
@AyushiSharmaDSA 8 ай бұрын
Welcome 🤗 glad it was helpful
@shatakshivishnoi916
@shatakshivishnoi916 Жыл бұрын
clear explanation🙌
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Glad you think so!🤗
@phaneendhrachinta7295
@phaneendhrachinta7295 Жыл бұрын
Very Informative, Thank You
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Glad it was helpful!🤗🤗🤩
@SuryaChallagali
@SuryaChallagali 2 жыл бұрын
daily its a motivation, doing daily challenges with you.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Great :)
@sundarp7552
@sundarp7552 2 жыл бұрын
Clearly explained. Thank you for your video
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome :) glad it was helpful
@smile8510
@smile8510 2 жыл бұрын
Nice Explanation!
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Thanks 😊
@Darshan-p5r5k
@Darshan-p5r5k 8 ай бұрын
thank you aisha akka
@shreekrishna3453
@shreekrishna3453 2 жыл бұрын
wow, great explanation
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you, glad it was helpful :)
@siddharthamishra7598
@siddharthamishra7598 Жыл бұрын
Thanks so much for the video !!!!
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
You are so welcome!🤗
@jeeldasvani5015
@jeeldasvani5015 2 жыл бұрын
grt explanation ayushi as always
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you, glad it was helpful :)
@raj_kundalia
@raj_kundalia Жыл бұрын
thank you!
@desihiphop4998
@desihiphop4998 2 жыл бұрын
Di consistency ke liye respect++ !!!!!!!!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
🥺🥺🥺 thanks mate
@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 :)
@AshwaniKumar-im6zb
@AshwaniKumar-im6zb 2 жыл бұрын
Thanks Ayushi. It helps me alot.
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome Ashwani, glad it is helpful :)
@SavitarOP
@SavitarOP 2 жыл бұрын
OP Solution
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Thank you, glad it was helpful :)
@kholiyamails1257
@kholiyamails1257 Жыл бұрын
thanks sis aag lgadi dont stop 😅
@AyushiSharmaDSA
@AyushiSharmaDSA Жыл бұрын
Thanks yrrr🤩🥹
@sumanshekhar8110
@sumanshekhar8110 11 ай бұрын
It took some time to understand the if condition part, nevertheless nice explaination.
@AyushiSharmaDSA
@AyushiSharmaDSA 10 ай бұрын
thank you :)
@Sejal-Maheshwari-2002
@Sejal-Maheshwari-2002 2 жыл бұрын
Thanks for being consistent !
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome, glad the videos are 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?
@jaicev8412
@jaicev8412 2 ай бұрын
7 ,12 is also overlapping.. why we cant burst it ?
@pranavkumarparihar1397
@pranavkumarparihar1397 2 жыл бұрын
Thanks di
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
Welcome, glad it was helpful :)
@rohit_700
@rohit_700 2 жыл бұрын
Is this some kind of series', Found your channel on LinkedIn!!
@AyushiSharmaDSA
@AyushiSharmaDSA 2 жыл бұрын
It's leetcode daily challenge :)
@SoumikGhosh-ef1jn
@SoumikGhosh-ef1jn 6 ай бұрын
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.
@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
@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
@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; }
@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
@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
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 4,6 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 286 М.
Winning Google Kickstart Round C 2020
30:57
William Lin (tmwilliamlin168)
Рет қаралды 4 МЛН
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 199 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 835 М.
N-Queens - Backtracking - Leetcode 51 - Python
17:51
NeetCode
Рет қаралды 180 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 4,6 МЛН