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 Жыл бұрын
dhanyavad
@himanshu_14229 ай бұрын
bro u are god in explaining stuff damn this seems so easy now
@yagnikpatel4404 Жыл бұрын
Aryan can't we use binary search logic with nearest cuts[i] index after sorting cuts array ?
@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 Жыл бұрын
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 Жыл бұрын
impressive , better than striver's tbh
@gangsta_coder_12 Жыл бұрын
Excellent explanation
@sondidu Жыл бұрын
These sticks are giving me a headache
@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 Жыл бұрын
Bro Notifications XD
@adarshtiwari6742 Жыл бұрын
Keep up the work❤❤❤❤
@jagratgupta8392 Жыл бұрын
nice explaination bhaiya its a really tough problem.......couldnt think this much😅😅🥲