Introduction to Heap Data Structure + Priority Queue + Heapsort Tutorial
Ғылым және технология
In this video, we'll delve into the fundamentals of the heap data structure, explore priority queues, and walk you through a comprehensive heapsort tutorial. Whether you're preparing for a coding interview or just eager to expand your data structure knowledge, this tutorial covers theory, practical coding examples, and an in-depth look at how it all comes together.
👉 Resources
- Join Replit: join.replit.com/kunal-kushwaha
- Lecture code: replit.com/@KunalsReplit/Heaps-1
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
➡️ Connect with me: kunalkushwaha.com
👨💻 Join WeMakeDevs: wemakedevs.org
======================================================================
Timestamps:
0:00:00 Introduction
0:01:58 Why heaps?
0:10:02 How heaps work
0:21:40 Inserting items in a heap
0:28:20 Removing items from a heap
0:35:15 Code
0:50:32 Heapsort
0:55:45 Priority Queue
0:58:03 Creating a heap from an unsorted array
1:09:14 Closing remarks
#heap #placement #dsa #computerscience #faang
Пікірлер: 273
👉 Resources - Join Replit: join.replit.com/kunal-kushwaha - Lecture code: replit.com/@KunalsReplit/Heaps-1
Take your time kunal to make this videos. People are saying complete it ASAP & all. But I know it takes a lot of time & hard work to make videos. It's not that easy to Record, Edit, Render, Make thumbnail. There are so many things that can go wrong (maybe you forgot to record, rendering issues etc) So, Just to let you know take your time with these videos. Because I know that this videos are the best & it's the only thing that you need to watch to understand DSA. Being watching your videos since 2months (LinkedList, Search, Trees) It's helping me a lot. Thank You so much !!
Thalaiva....va thalaiva va thalaiva 🔥
Finally Dsa with kunal is back.... Hope u complete this series soon
@HeyMr.OO7
9 ай бұрын
Yeahh by Dec 2023 he says 👍🏻
@agramkapoor6569
9 ай бұрын
He told in the video?
@HeyMr.OO7
9 ай бұрын
Yeahh recent Tree video or questions video I asked by when series will complete he said it'll be completed by Dec 2023
@Jyothirmai1111
9 ай бұрын
Hey what if we r unable to do a question on our own?
@isaacreyes4915
9 ай бұрын
@@HeyMr.OO7 No way he will finish by Dec. Still missing DP and Graphs.
This series is just ....... I literally have no words to explain how much helpful it is.❤❤❤ A big big thanks for making these videos, Quality content for free!!!!!!
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
@gojosatoru988
9 ай бұрын
@@bla8275 Yup.... The playlist covers the whole basics...
The last concept, in which we are getting the time complexity for creating a heap with an unsorted array was a Banger.....learned something new .... looking forward to learn more good concepts and great topics like Graphs and DP from you ! Thank you🙏
@KunalKushwaha
9 ай бұрын
Thanks for sharing!
39:10 to 39:15 , I literally died laughing watching that part 😂😂😂
@pavithas1114
Ай бұрын
Me too
Hi sir I'm from Norway, please keep making these videos, I'm having the algorithm course now and I really need your videos!!
maaan thanks kunal for interpreting these dsa topics this way, you made them soo simple that with your assignements i get the confidence to crack faang interviews just in time thanks alot !!
Thanks Kunal for starting again. Please continue 🙏
Everybody who has not understood data structures yet just waits for your videos .. and you make it look so simple .. I'm sure those who watch these will never forget the concepts again in their life.
@KunalKushwaha
9 ай бұрын
Thank you
@mohammadmoinuddin8895
9 ай бұрын
@@KunalKushwaha it would be a great ,if u complete the dsa course asap , because no one teaches as simple as u
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
Thank your so much kunal.... was waiting for youu...!!
Kunal you are great, you have helped me a lot on this journey of learning DSA in my university, I have been able to do labs and stuff with no problem , thanks a lot, I have been waiting for you to make videos on graphs and DP, we need you man !!!!
Was waiting eagerly for the video. Thank u and please complete this DSA playlist beacuse i am going to sit in the placements from next semester.
Thanks, really appreciate you taking the time to teach us!
Tqs kunal waiting for ur video bcz No u tube lecture as teach as u ❤❤
Awesome video Kunal sir ❤❤
My Favourite language is c++ , and i am doing coding in c++ only but looking to your teaching techniques and skill i used to watch your dsa series Thank you for such a incredible content 🙏🙏
Thank you so much kunal for the video❤ and super excited for the next questions video.
Thank you so much bhaiya for the high quality content❤
Finally, my man is educating the whole youtube with the best DSA
@vakulkeshav4324
9 ай бұрын
Hey, I have just started with DSA course currently learning arrays, just wanna ask you if this course is good like is everything covered till now. Basically I want your honest opinion regarding this course or any other suggestions.
@gojosatoru988
9 ай бұрын
@@vakulkeshav4324I can't explain how good this series is. The teaching style, the content, explanation everything is just top notch. You can't get this type of quality content even in a paid course. Believe me bro....just watch this series and you will be solving medium and hard leetcode questions (for interviews) in no time.... Just be consistent 😊
@zanies6288
9 ай бұрын
@@vakulkeshav4324This is great course but I would recommend you to watch advance topics like dp, trees and grap from striver/aditya verma also
@Vortx110
9 ай бұрын
@@vakulkeshav4324 bro this is the best course out there trust me my friends have taken courses from coding ninjas gfg and chapri ytubers like babbar and sapna college but ultimately they are also watching kunals course only this is gem brother follow this course u will become great but indeed pratice is needed for sure u can do that on leetcode
@Dicegambler-r8h
9 ай бұрын
@@vakulkeshav4324 How much Java (or whatever language you know) is enough for learning DSA?
Thank you Kunal 🤝
Was waiting for this.. finally 🔥🔥🔥🔥🔥
Great stuff clear the concept in one short
So many people making it complex but You made heaps really simple.
THAT'COOL KUNAL , Waiting for the Next
I am really grateful to you for creating this video
Just explanation is in motion . loved it❤
Easily understood..!! Thanks Kunal...
A big Thank you for these awesome videos!
One of the best video on heaps ..❤
Here comes the most awaited video of the Supreme DSA Playlist ❤ U r the Best Tutor❤❤
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
@sakshamjoshi1118
9 ай бұрын
@@bla8275 yes of course
this video deserves q10000+ cmnts why only 172 ? hats off to you kunal
Great Course Kunal!
Thanks Kunal, Your videos are really helpful.
Great bro keep it up❤
God bless u❤ , really great great work sir, no one can provide such an awesome course, pls sir provide remaining topics also
I haven't reached this video yet . But thank you for continuing the playlist.
I enjoyed watching this complete videos Great work Kunal
I would even pay for this course such great way of teaching. And please go ahead with DP
Long awaited
thank you bro ❤️Great work you are doing ✌🏻👀 will comment after watching :)
This series is amazing ,and also really helping while going to the iinterview . please upload graph videvos
Finally, king is back with his new super duper video.❤️🔥🔥 Thank you for providing such an amazing DSA course for free on KZread. Huge respect. 💯 ❤️🙌
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
@Saurabhkumar-kl3or
8 ай бұрын
@@bla8275 how many times bro u asking ofcourse it is for beginners bro
Superb video
Outstanding explanation
lol fang youtubers were criticizing him for not completing his DSA series meanwhile they themselves haven't done anything for the community for free. Atleast he was trying to do and Now he is back🙌❤
Good work 👍
no can provide this high quality teaching
Keep them coming
You doing a great job K!
One thing to note is that since we are shifting and not replacing the elements while swapping, if will be creating duplicate elements in the list. E.g. If the original list is [34,45,22], after swapping first and last elements, the list will look like this: 22,34,45,34,22. So, better to use Collections.swap() instead.
"Java doesn't have pointers so you get my point" framing this!
Kindly keep posting
You made it simple!
Playlist is getting better and better.....
Thanks Kunal ❤
huge respect to you 🙏
Thanks kunal ❤️
We're getting close to most complex topics Soon. Thank You Kunal!!!
@prajwalm.s7976
9 ай бұрын
But Kunal will make them easier
@vikrant9272
9 ай бұрын
@@prajwalm.s7976 For Sure
@ankur07M
9 ай бұрын
Dynamic programming??
@vikrant9272
9 ай бұрын
@@ankur07M Yes Graphs, DP, Greedy
@iit-b3869
9 ай бұрын
@@vikrant9272can you please tell all the remaining topic I think hashmap trie and many. Can you tell all one
Thank you @kunal
Back on track 💥
Such a appreciating work done by you sir... We are very thankful to you for providing the better quality of source of education to enhance the skills... 🙌
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
@cliffeflash3166
9 ай бұрын
@@bla8275yes you can start
best course on KZread
I don't know why I'm crying, thank you man! LIVE LONG, STAY STRONG AND HEALTHY. MUCH LOVE TO YOU!
@KunalKushwaha
9 ай бұрын
You’re welcome
@bla8275
9 ай бұрын
Bruh...Kindly tell is this playlist also for beginners who don't know about Javaa but learned C program during 1st sem
What a Man, no word to say
Thank you❤
thanks bhaiya..
Legend is back !!
the best video🔥🔥🔥🔥
Thanks really good
Thanks Kunal 🥺
Hi khushal, it's good you are back again . I request you to post videos of a particular topic in a series , For eg.., You've posted 1st Binary trees after that u posted videos related to string buffer and then 2nd video of binary trees is posted. It may be confusing so please go to next topic once u complete the prev topic. thanks in advance ❤
28:27 Hey Kunal, Thank you very much for your hard work. I have a request from you that please make videos on dynamic prog and graphs and complete the playlist. You are brilliant and I want to learn DSA only from you.
Hey Kunal, loved this series. If we are learning DSA from you, who did you learn it from?😉
THANKYOU!!!!🙃
Thank you Kunal
@ankur07M
9 ай бұрын
Thank you Kunal 👍🏻👍🏻
yayyyyyy, new video
great content!!1
thanks kunal
the goat has returned
thanks a lot mam
Goat is back💥
I'll definitely visit london to meet you one day...
Thankyou sir
oh u recoreded this while u were about to go to south america niice.
Thanks
#DSAwithKunal will trend again. 🎉
Finally ❤❤❤
Hey @kunalKushwaha , please let me know the book you used for studying DSA. This DSA bootcamp is amazing. wish it could be more consistent in terms of providing lectures. Grateful for your efforts.
wake up babe new kunal kushwaha dsa video just dropped
Kunal please finish it , I have high hopes on you 🎉
I know some basics of c++ progamming upto oops but for dsa i want to code in java To view this playlist do i need to learn basics of java or i just start this playlist . please do reply I am in so much of confusion.
Thank You So Much Bro For Your Amazing DSA Playlist ❤Now, Please make the Graph and DP videos. It will be very grateful to you brother ❤❤
@KunalKushwaha
9 ай бұрын
As soon as possible
@raghvendrasingh1981
9 ай бұрын
@@KunalKushwaha what's the next topic? Is Graph & DP only left?
super course
Which app do you use to take notes ?
Yuo're contributing to the society...🌱
faad dala
Another great video
@KunalKushwaha
5 ай бұрын
Thanks again!
@navnav1819
5 ай бұрын
@@KunalKushwaha No problem :)
Dsa God Kunal OP!!!🎉🎉