AVL Trees Tutorial | Self Balancing Binary Search Trees

preview_player
Показать описание

In this video, we delve into AVL trees, which are a type of self-balancing binary tree, and a crucial data structure for coding interviews. You will learn about the inner workings and use cases of AVL trees and follow along as we implement them from scratch, backed by clear explanations and practical examples.

Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!

👉 Resources

========================================================
Timestamps:
00:00:00 Introduction
00:03:15 Problem with BST
00:12:48 Self balancing binary trees
00:15:31 AVL trees theory + algorithm
00:34:36 Example walkthrough
00:40:57 Time complexity
00:42:22 Code
01:04:24 Closing remarks

#trees #placements #dsa
Рекомендации по теме
Комментарии
Автор

Please complete this java/dsa series not only me but many of my friends are waiting for this to complete and get placed in 2024. The best JAVA/DSA series ever. Great Job Man.

kookiechan
Автор

In the last question, the height of an AVL tree with n nodes is approximately log base2 (n) so the height should be around 10 not 3.

SaumyaShukla
Автор

Finally I got a one who makes things easy..😄

yashwanthraj
Автор

You are a master in DSA. After watching your videos only got motivated to attend FAANG interviews.

samosapoint
Автор

Only today I have started doing this course n was little worried because it wasn't complete but what a coincidence that you continued posting today itself . Thank you so much kunal sir for teaching in such an awesome way. You are such an amazing teacher n a fabulous person to look up to. ❤

anjalitiwari
Автор

Please Complete this playlist ASAP, learnt recursion from you man it is amazing.

tanaypatel
Автор

After so many videos of not being able to understand AVL tree, i land up here and im stunned by how simple this was to understand. Thanks for your time and effort on this!

RheaMochi-yr
Автор

Kunal, at 1:02:49 you calculated height of p before height of c, which is not correct, because after leftrotate p is above c, and now you are using c to calculate height of p ( because c is at left of p now) but height of c has not changed yet, so height of c should be changed first then height of p.

funkyboy
Автор

If you are struggling to understand any topic watch it again and again draw it on paper debug the code, ,,, and at last you will learnt it . THANKS KUNAL 😇

aajkagyan
Автор

# GOD Of DSA
Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May God Vishnu Bless You :)

shubhamagarwal
Автор

Thanks Kunal for being so committed to completing this playlist, I can only imagine how you'd be managing your full-time job alongside YouTube and all the other things you do. Thanks again and god bless you. Additionally, if you ever come to Cambridge and have some free time - would love to meet you!

shivashisharora
Автор

Seriously, when i was doing cp i tried a lot to learn this but i was not able to do it. I left cp and DSA one year ago and this video poped up so i thought let's give a try. And concepts are super clear i am wondering what was hard in this.😮 😮

yashdhanlobhe
Автор

the best tutor ever in you tube.thanks for ur service.may god bless you with whatever u want, need

nivetha
Автор

Was Manifesting Yesterday Here we go!! Thanks Kunal for giving us your important time and content 😌!!

notjod
Автор

I had a doubt please correct me if I am wrong. AVL is self balancing *BINARY TREE* so if there are 1000 nodes shouldn't height should be [ Log 1000 base 2 = 9 ] than [ Log 1000 base 10 = 3 ]

bhaveshanandpara
Автор

Such a great course but please can you deliver it in a consistent manner, you are a great teacher man, much appreciated for this course

rohansunwar
Автор

Thank you for posting this. I hope you find time and complete this playlist soon. Once again, thank you so much. Lots of love, Kunal ❤

hariharanas
Автор

I didn't know what AVL was, but thanks to your incredible video, I now have a clear understanding of it. loved it!

puspendra
Автор

I don't know what happen when I watched Kunals tutorial. It's look like very simple to understand. Thanks again.

RidoyChandraDey
Автор

It's getting more cooler day by day

shubhambansal