Minimum Cost to Cut a Stick || Merge Stones || Burst Ballons || Dynamic Programming || Leetcode 1547

  Рет қаралды 5,055

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 20
@abhimanyuambastha2595
@abhimanyuambastha2595 5 ай бұрын
Loved your explanation. I watch different approaches from Neetcode, Striver and others too. Yours felt the most intuitive to come up with in this problem
@shubhamagarwal9182
@shubhamagarwal9182 Жыл бұрын
dhanyavad
@himanshu_1422
@himanshu_1422 9 ай бұрын
bro u are god in explaining stuff damn this seems so easy now
@yagnikpatel4404
@yagnikpatel4404 Жыл бұрын
Aryan can't we use binary search logic with nearest cuts[i] index after sorting cuts array ?
@VivekYadav-ds8oz
@VivekYadav-ds8oz Жыл бұрын
That is indeed one way to do it. I thought of it first, however realised that my cuts array already has that "binary search" in it. It's just the previous element.
@FlyToJupiter
@FlyToJupiter Жыл бұрын
Thank you! I really loved the part you mentioned that you would have sticked with the first version of memoized code and I wanted to ask that! Because the optimisation seems hard to come up with under pressure or not as intuitive immediately.
@jambajuice07
@jambajuice07 Жыл бұрын
impressive , better than striver's tbh
@gangsta_coder_12
@gangsta_coder_12 Жыл бұрын
Excellent explanation
@sondidu
@sondidu Жыл бұрын
These sticks are giving me a headache
@arshpreetsingh9618
@arshpreetsingh9618 Жыл бұрын
Why can't we greedily make the cut which is closest to the center of the stick? and we can call the same function for the left part of the cut and the right part of the cut
@SHREYAGGARWAL-t4b
@SHREYAGGARWAL-t4b Жыл бұрын
Bro Notifications XD
@adarshtiwari6742
@adarshtiwari6742 Жыл бұрын
Keep up the work❤❤❤❤
@jagratgupta8392
@jagratgupta8392 Жыл бұрын
nice explaination bhaiya its a really tough problem.......couldnt think this much😅😅🥲
@adarshtiwari6742
@adarshtiwari6742 Жыл бұрын
Nice work man❤❤
@codebyprince4562
@codebyprince4562 Жыл бұрын
Kitna 😂😂😂 ok bolega yr
@pulkitranjan8189
@pulkitranjan8189 Жыл бұрын
bharti aggarwal ;)
@kshitijofthejune
@kshitijofthejune Жыл бұрын
"Ok"
@infinitygaming7192
@infinitygaming7192 Жыл бұрын
Bro today's contest
@ARYANMITTAL
@ARYANMITTAL Жыл бұрын
Coming up brooo ❤️
@siddarthreddykoppera5930
@siddarthreddykoppera5930 Жыл бұрын
@@ARYANMITTAL when ?
DP 50. Minimum Cost to Cut the Stick
30:02
take U forward
Рет қаралды 145 М.
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН
Hoodie gets wicked makeover! 😲
00:47
Justin Flom
Рет қаралды 138 МЛН
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 60 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Minimum Cost to Cut a Stick - Leetcode 1547 - Python
12:15
NeetCodeIO
Рет қаралды 14 М.
Lec 54: Incompatible Elements #swayamprabha #ch27sp
58:46
CH 27: IIT KANPUR 04: Mechanical Engineering...
Рет қаралды
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Edit Distance - Dynamic Programming - Leetcode 72 - Python
21:00
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 199 М.
Complete Dynamic Programming Practice - Noob to Expert | Topic Stream 1
3:50:43
Machine Learning for Everybody - Full Course
3:53:53
freeCodeCamp.org
Рет қаралды 8 МЛН
C Programming Tutorial for Beginners
3:46:13
freeCodeCamp.org
Рет қаралды 14 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 5 МЛН