I've also used min heap. But I've use different approach and it worked. Thanks
@techdose4uАй бұрын
nice 👍
@Anikait-h3dАй бұрын
Got TLE at the start but now understood. thanks!
@techdose4uАй бұрын
great :)
@MydavrUrunovАй бұрын
Really nice explanation, near future I will work with you.
@techdose4uАй бұрын
great :)
@AlbinSabu-y2vАй бұрын
Thankyou sir❤️
@techdose4uАй бұрын
welcome
@sailendrachettri8521Ай бұрын
Thank you sir :)
@techdose4uАй бұрын
Most welcome!
@krishnaveerakishoremuppana9189Ай бұрын
Thanks for the explaination. There is one more optimal solution with TC - O(N). It would be great if you could explain that. Thanks :)
@techdose4uАй бұрын
went for the intuitive one this time :)
@krishnaveerakishoremuppana9189Ай бұрын
@@techdose4u yes it was tough to get the intuition of most optimal one. Anyways, I have upsolved it using the editorial :). They have used the concept of local minima and two pointer approach
@deathstrom8723Ай бұрын
It showing an error message like even the syntax is wriiten exactly like u error: expected '>' Line 13: Char 23: note: to match this '
@RavikantMundaАй бұрын
Do not use semicolon in your define statements at the top
@techdose4uАй бұрын
maybe you need to provide a space at the end before var name > > instead of >>