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 - th-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 TH-cam with java implementation and found this. Hats Off To You Man...Excellent Work. GOD BLESS YOU :)
Sir you didn't change the capacity it's still 3 but size has been printed in ur console as 6 but while I did the same it printed ArrayIndexOutOfBoundException ...when I provided capacity of 6 then it's size was printed ...why sir .please make it clear.
Thanks !!! I request you to please share this playlist with ur friends and colleagues. It will help channel grow and motivate me to create more such videos !!!
@@itsdineshvaryani i don't think so because we are only working with the index 1 to n in the heapify algo so whether it is 0 or null it doesn't really matter.
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 - th-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 TH-cam with java implementation and found this. Hats Off To You Man...Excellent Work. GOD BLESS YOU :)
Thanks !!!
In resize function , you started for loop with i=0 ,it should be i=1 right?
I think you are right
actually heap[0] = null, thus it wont matter.
same will be copied to temp[].
Sir I am not able to find the delete node from Max heap video in the playlist.Can you please upload it that would be very helpful
Will add it soon !!!
Sir you didn't change the capacity it's still 3 but size has been printed in ur console as 6 but while I did the same it printed ArrayIndexOutOfBoundException ...when I provided capacity of 6 then it's size was printed ...why sir .please make it clear.
Take it as an exercise and figure out why !!!
I think when capacity is 3 and when it is completed it calls resize method. Even if you give capacity 2 it shows the same output.
I loved your teaching :)
Thanks !!! I request you to please share this playlist with ur friends and colleagues. It will help channel grow and motivate me to create more such videos !!!
@@itsdineshvaryani Sure man... Hope you're videos will reach it to many developers out in the world❤️
Why is the method named swim() ? Should it be swap() ?
There are various names given to it ... You can give any name ... Just that method name lets u know algo behind it !!!
@@itsdineshvaryani Sure. Thanks. I am binge watching your Data Structure and Algorithms playlist. Very well explained. Thanks for the videos.
Thanks !!! I request you to share it with ur friends and colleagues so that it helps channel grow and motivate me to add more !!!
@@itsdineshvaryani Definitely I will.
Why we are using integer[] heap instead of int[] heap
int has default values which may interfere with heap properties ... For demo i have taken Integer as it has null value as default.
@@itsdineshvaryani okay got it
Using integer I will have output like:- null 5 4 3 2 1 null null
But using int output will be like:- 0 5 4 3 2 1 0 0
@@vasudevparmar9876 yes ... Exactly
@@itsdineshvaryani i don't think so because we are only working with the index 1 to n in the heapify algo so whether it is 0 or null it doesn't really matter.
@@technicaljethya993 yes but when u print array u wont get from where to where heap lies ...