Please *Like* , *Comment* , *Share* , *Subscribe* and *Click Bell* 🔔🔔🔔 Icon for More Updates. To get *Data Structures and Algorithms* complete course for free please follow this link - ua-cam.com/play/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d.html
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over UA-cam with java implementation and found this. Hats Off To You Man...Excellent Work. GOD BLESS YOU :)
What if 1 is empty in the above max heap, according to definition left side should always be filled, so if we take out 1 we will fulfill the definition but one place in array will be empty.
It makes calculation of both child indexes easy and also if given child index we can calculate easily where parent index lies... You can start heap from 0 index as well but google child and parent index calculation correspnding to 0 index ....
Please *Like* , *Comment* , *Share* , *Subscribe* and *Click Bell* 🔔🔔🔔 Icon for More Updates. To get *Data Structures and Algorithms* complete course for free please follow this link - ua-cam.com/play/PL6Zs6LgrJj3tDXv8a_elC6eT_4R5gfX4d.html
Best series for DS & Algo. I am also 10 yrs java exp guy. Was looking for DS & Algo free course over UA-cam with java implementation and found this. Hats Off To You Man...Excellent Work. GOD BLESS YOU :)
Thanks !!!
Nice explanation 😊
thank you sir for your effort... really helpful!!!
In case you like this video ... Please like, share and subscribe so that channel grows and it allows me to post more ... Thanks !!!
What if 1 is empty in the above max heap, according to definition left side should always be filled, so if we take out 1 we will fulfill the definition but one place in array will be empty.
you can also fill 0 index .... you just need to change formulas for parent and child accordingly !!!
your videos contains great sir
Thanks !!!
👌👌👍
Why we r storing elements from index 1??
It makes calculation of both child indexes easy and also if given child index we can calculate easily where parent index lies... You can start heap from 0 index as well but google child and parent index calculation correspnding to 0 index ....
@@itsdineshvaryani ok sir, thanks for replying always 🙏🙏
Only UA-camr who always replies within a second🔥🎉❤️