Data Structures: Trees

  Рет қаралды 995,683

HackerRank

HackerRank

7 жыл бұрын

Learn the basics of trees, data structures. This video is a part of HackerRank's Cracking The Coding Interview Tutorial with Gayle Laakmann McDowell.
www.hackerrank.com/domains/tut...

Пікірлер: 366
@timgoppelsroeder121
@timgoppelsroeder121 5 жыл бұрын
Finally someone who explains a concept without unnecessarily complicating it thank you
@bojanstefanovski9507
@bojanstefanovski9507 Жыл бұрын
daaaaaaaaaaaaaaaaa!
@b14ckh4wk3
@b14ckh4wk3 Жыл бұрын
Log sum * COS
@bullymaguire2335
@bullymaguire2335 Жыл бұрын
simp XX ∪
@rajsaroj4696
@rajsaroj4696 4 жыл бұрын
2020 but, this playlist saving lives
@pichass9337
@pichass9337 3 жыл бұрын
It was made only 4 years ago...
@MattaparthiShivaBhargav
@MattaparthiShivaBhargav 3 жыл бұрын
Tree saves lives
@SlavaCh
@SlavaCh 3 жыл бұрын
Indian Lives Matter
@TheVishal38
@TheVishal38 3 жыл бұрын
2021
@Rajmanov
@Rajmanov 3 жыл бұрын
@@SlavaCh all lives matters
@tochinwa1234
@tochinwa1234 5 жыл бұрын
Gayle is a living legend ! Makes data structures and algorithm a doddle. Thanks Gayle. 😘
@maazbinmustaqeem
@maazbinmustaqeem 5 жыл бұрын
She just goes through the recursion in a very light way with good animation tool. Loved it. Thanks!
@amyp2733
@amyp2733 5 жыл бұрын
Your data structures videos are so helpful! You’re really good at explaining them quickly
@MegaMoses91
@MegaMoses91 3 жыл бұрын
This was the best Tree DS explanation I have watched. She’s amazing!
@flacodoom
@flacodoom 7 жыл бұрын
Very well explained code. Trees always give me problems when asked in tests.
@adithyarajendran6393
@adithyarajendran6393 5 жыл бұрын
Lol
@dashnaidoo8017
@dashnaidoo8017 3 жыл бұрын
in 2021 and this is still the most simple and well explained version. Thanks Gayle
@jeremiahgray1017
@jeremiahgray1017 2 жыл бұрын
Jeez what more could you ask for. Clear, concise, and straight to the point
@anaibrahim4361
@anaibrahim4361 5 жыл бұрын
saved me thousands of hours to understand this thank you sooo much very professional explanation
@mocao3205
@mocao3205 2 жыл бұрын
This video was so beautifully explained, it's no wonder my lecturer recommended it. Thank you very much for your video.
@tahirrazavi7862
@tahirrazavi7862 6 жыл бұрын
She is literally amazing !
@stewartzayat7526
@stewartzayat7526 6 жыл бұрын
Recursion is such a powerful tool!
@Alex-sg6tz
@Alex-sg6tz 6 жыл бұрын
It is until ..... stack overflow
@petegeorgopoulos1088
@petegeorgopoulos1088 6 жыл бұрын
be careful tho. A lot of people overuse recursion because they wanna be fancy. But remember, recursion builds a stack in memory and does not release it until it works it's way back to the first call. This could lead to some issues. Most things that people use recursion for can be easily done with a simple loop.
@shellgecko
@shellgecko 5 жыл бұрын
only when you have few data otherwise you'll have to use alternatives like dynamic programming
@georgievvladimir
@georgievvladimir 5 жыл бұрын
and such a exhausting struggle for the stack
@niesamain1871
@niesamain1871 3 жыл бұрын
@@shellgecko dafuq are you talking dynamic programming for stack?
@denniswave95
@denniswave95 6 жыл бұрын
This was a really clear explanation. Thank you!
@granturismoautos7522
@granturismoautos7522 7 жыл бұрын
this is AMAZING!! Well explained!
@shilpaarora8841
@shilpaarora8841 3 жыл бұрын
Really crisp , clear and easy explanation. DS became so easy to grasp the way you explained.
@rishabh3952
@rishabh3952 6 жыл бұрын
short and on point that's wat I wanted.saved my time! thanks.
@bik8353
@bik8353 5 жыл бұрын
Thank you for this vivid walkthrough of the code. This is one of the best of this kind
@ojazzista
@ojazzista Жыл бұрын
Mind-blowing yet extremely simple recursive implementation!
@MrDaryl101114
@MrDaryl101114 3 жыл бұрын
This is gold!! Everything made sense now!
@ashishmishra672
@ashishmishra672 7 жыл бұрын
Wow. The way you explained it, beautiful!
@JoseGarcia-lm3qn
@JoseGarcia-lm3qn 6 жыл бұрын
she is so talented! Learned this right away thanks to her
@MrSchmidt97
@MrSchmidt97 Жыл бұрын
Wow, this was precise, easy to follow and I feel I understood what is going on Really great stuff!
@himanshusuthar7158
@himanshusuthar7158 5 жыл бұрын
Well explained. Exactly what I needed. Thank you.
@upgames1313
@upgames1313 6 жыл бұрын
this was so well explained and clear! thank you!
@codeisawesome369
@codeisawesome369 7 жыл бұрын
You're awesome Ms. McDowell! Many thanks.
@progtom7585
@progtom7585 3 жыл бұрын
I love the presentation of code alongside diagrams as im a visual learner, really appreciate it.
@mikelk124
@mikelk124 6 ай бұрын
Very well explained. I found how you visually grouped the "paths" of recursive calls helpful to understand what was happening when "traversing" the tree.
@SuperOneWinged
@SuperOneWinged 7 жыл бұрын
I love your videos so much, keep it up, you are one of the best
@thelambsauce2015
@thelambsauce2015 2 жыл бұрын
Very informative and straight-forward video, thank you!
@response2u
@response2u 6 жыл бұрын
Very nicely explained! Well done!
@118andrey
@118andrey 2 жыл бұрын
Thank you, finally someone who doesn't take an hour to explain a 5 minute topic
@hritikbansal14
@hritikbansal14 4 жыл бұрын
More than amazing. Such a simple explanation. Well taught. Thanks HackerRank...
@vigneshram7464
@vigneshram7464 7 жыл бұрын
Well explained. Works like charm !! Thanks
@abdallaelmedani8933
@abdallaelmedani8933 5 жыл бұрын
Thank you, Gayle. Well explained.
@gabrielpereiramendes3463
@gabrielpereiramendes3463 5 жыл бұрын
Awesone. Thanks from Brazil. Excelent explanation!
@jamesjohn8397
@jamesjohn8397 3 жыл бұрын
Excellent explanation !! I can tell you, you have done excellent work, simple clear, and concise well done !! and thank you !!
@jmskks2155
@jmskks2155 6 жыл бұрын
Amazingly well explained. very very helpful.
@motezart2867
@motezart2867 5 жыл бұрын
Best run down of trees I've seen. Code with examples after is very effective.
@brendabrownofficial
@brendabrownofficial 5 жыл бұрын
Never knew HackerRank had a youtube channel, the explanations are so good. Thank you for making these!!!
@Wiseman_RSA
@Wiseman_RSA 5 жыл бұрын
At least you found out 8 months ago, I just found out now
@Cfuzion
@Cfuzion 2 жыл бұрын
@@Wiseman_RSA Atleast u found out 3 years ago..
@elliemay1748
@elliemay1748 5 жыл бұрын
Very excellent explanation, clearest one I’ve ever heard. Deleting needs its own video, so I understand why you decided not to include it. On programming tests, I’m always like “can I not write out all the recursion methods? I hate writing all the if statements... we both know what we are talking about, this is a binary search tree ok?” haha.
@freestyle8886
@freestyle8886 7 жыл бұрын
Great videos, helped me so much, ty!
@-0-__-0-
@-0-__-0- Жыл бұрын
I've created a JavaFX App that animates a Binary Tree from an array and this video solved most of my problems. Thank you so much!
@tanihakdog1291
@tanihakdog1291 3 жыл бұрын
i understand your teachings better than my prof. nice video!💜
@mav474
@mav474 3 жыл бұрын
Thank you for posting such a useful article!
@haruruben
@haruruben 6 жыл бұрын
Thanks for making these videos!!! So helpful
@ManuelRochaCR
@ManuelRochaCR 7 жыл бұрын
Very well explained. Thank you!
@will5525
@will5525 3 жыл бұрын
3 years later and this playlist still getting people jobs😎
@grimma9226
@grimma9226 3 жыл бұрын
which playlist?
@RadostinaChipanova
@RadostinaChipanova 3 жыл бұрын
You are an amazing educator! Thank you
@FarizDarari
@FarizDarari 7 жыл бұрын
Very clear explanation, and nice drawings!
@raha5184
@raha5184 3 жыл бұрын
This is very well-explained, thanks!
@obakengmothusi9149
@obakengmothusi9149 Жыл бұрын
You are phenomenal... Loved your video.💕💕
@angelesfigueredo5740
@angelesfigueredo5740 2 жыл бұрын
Such an amazing explanation!!! Thanks for your video
@addyli6924
@addyli6924 6 жыл бұрын
thank you! love this video
@wenkaiyang1487
@wenkaiyang1487 5 ай бұрын
Thank you so much for the explanation!
@hiteshmehta616
@hiteshmehta616 4 жыл бұрын
This explanation makes my life simple against Binary Tree Thanks Alot !! :)
@RandyPfohl
@RandyPfohl 4 жыл бұрын
I would have expected the insert and contains functions to be in a Tree class of some sort, and the node to be an internal implementation operating on a comparable interface. So we can return just the data not the node itself. I know it's outside of the scope of this video, but wondering if it's a common practice to put this logic inside of the node class.
@ihabfam1059
@ihabfam1059 5 жыл бұрын
Very excellent explanation, Good Job
@nicgold474
@nicgold474 4 жыл бұрын
It was awesome. great presentation. Thank you so much.
@75hilmar
@75hilmar 2 жыл бұрын
Just what I needed right now.
@leoali90
@leoali90 4 жыл бұрын
Loved the explanation!
@virginman101
@virginman101 7 жыл бұрын
is the contain(value) basically functionception ?
@realworldcodingapplications
@realworldcodingapplications 11 ай бұрын
wow this was pretty simple explanation and easy to understan thanks
@conag9864
@conag9864 4 жыл бұрын
Great explanation!
@vasanthane8425
@vasanthane8425 3 жыл бұрын
Really Great Video and Explanations within short minutes which we can understand the concept. Kudos!! Team.
@anhminhtran7436
@anhminhtran7436 6 жыл бұрын
Great videos! Your code is very easy to understand. Thanks =))
@Yusifinify
@Yusifinify 2 жыл бұрын
Fantastic breakdown. You are the truth.
@KidsCreativeTime
@KidsCreativeTime 2 жыл бұрын
Thank you very madam. you have explained the Basics of tree traversal very nicely in a simple way..
@asyncfilebybibek
@asyncfilebybibek 4 жыл бұрын
In the insert method it would not be val = data
@Ormonix
@Ormonix Жыл бұрын
Very clear explanation and simple understandable code, Thanks a lot
@ericgadzi7801
@ericgadzi7801 3 жыл бұрын
Great explanation. Thanks very much.
@Kirwel
@Kirwel 4 жыл бұрын
In the insert method, what if the tree is empty, how it would insert the first node, since the code says left or right
@daleprather3026
@daleprather3026 3 жыл бұрын
Good stuff! Makes me feel dumb when the teacher says "Let's implement this. It's really simple."
@zawizarudo7295
@zawizarudo7295 Жыл бұрын
Did she just pull a recursion and I understood it? Damn she's great!
@Dizkover
@Dizkover 4 жыл бұрын
WOW.... she explained it very well. Once you understand it... it's basically like elementary.
@Phoenix84118
@Phoenix84118 6 жыл бұрын
Finally, someone who write 5 the same way I do!
@thewatcherlollol
@thewatcherlollol 5 жыл бұрын
looks like an "s" ffs
@AJewFR0
@AJewFR0 5 жыл бұрын
There are dozens of us!
@seekingseaker
@seekingseaker Жыл бұрын
Nice, it's surprisingly simple.
@ammaraleem9213
@ammaraleem9213 2 жыл бұрын
Nicely Explained, Thank you!
@briantep458
@briantep458 3 жыл бұрын
really clear and concise
@THE_RISING_SUN
@THE_RISING_SUN 5 жыл бұрын
When it has 5 and it takes 5-1=4 and again calls the function, then does the previous value 5 is stored in memory till it reaches 1?
@tedjohnson912
@tedjohnson912 6 жыл бұрын
I actually understood binary trees after this video! Wow.
@rohitkalya
@rohitkalya 3 жыл бұрын
Very well explained. Thanks a lot
@khalidsleiman231
@khalidsleiman231 Жыл бұрын
it's really helpful you are like saving lives appreciate it. thanks ma'am.
@RePuLseHQKing
@RePuLseHQKing Жыл бұрын
the perfect video on trees
@ricardoorellana1168
@ricardoorellana1168 5 жыл бұрын
Thanks Gayle!
@FanVedete
@FanVedete 5 жыл бұрын
Very well explained. 👏
@yemaneabrha5902
@yemaneabrha5902 2 жыл бұрын
Ohh my God what a simple expression u are Wonderfull teacher
@farrukhahmedsid
@farrukhahmedsid 2 жыл бұрын
That's all we want! Thanks!
@lokeshchebrolu6878
@lokeshchebrolu6878 4 жыл бұрын
omg trees are this simple? fantastic explanation that too in this much short time.
@nitinsoni9848
@nitinsoni9848 4 жыл бұрын
You made it very easy to understand. How simple it is and I always fear with the name trees.
@iamsaytara
@iamsaytara 2 жыл бұрын
Wonderful explanation
@wesNeill
@wesNeill 3 жыл бұрын
Great explanation. My only question is how to implement it such that the node can contain an arbitrary (but homogeneous) data type?
@darshanvadile1288
@darshanvadile1288 3 ай бұрын
what a coding skills mam just awesome '
@AllanPichardo
@AllanPichardo 6 жыл бұрын
Excellent explanation
@mostdeathgaming
@mostdeathgaming 6 жыл бұрын
What is the significance of the contains function in the above program??
@breajacq2284
@breajacq2284 6 ай бұрын
Good explanation!
@joanjanku1909
@joanjanku1909 4 жыл бұрын
Idk you’re just great. Thank youuu sooooo much. Saved my life😂
@nestorguemez4846
@nestorguemez4846 2 жыл бұрын
Great video!
@orkhanahmadov9963
@orkhanahmadov9963 4 жыл бұрын
I watched this video and programmed binary tree in python totally it took me 30 mins... Professor could not explain in whole semester: D
@harshrathee5186
@harshrathee5186 4 жыл бұрын
I think you should have implemented contains method in the Binary Tree class instead of the Node class
Data Structures: Heaps
10:32
HackerRank
Рет қаралды 1,2 МЛН
AVL Trees & Rotations (Self-Balancing Binary Search Trees)
20:38
Back To Back SWE
Рет қаралды 323 М.
100❤️ #shorts #construction #mizumayuuki
00:18
MY💝No War🤝
Рет қаралды 20 МЛН
Шокирующая Речь Выпускника 😳📽️@CarrolltonTexas
00:43
Глеб Рандалайнен
Рет қаралды 11 МЛН
Hot Ball ASMR #asmr #asmrsounds #satisfying #relaxing #satisfyingvideo
00:19
Oddly Satisfying
Рет қаралды 24 МЛН
Data Structures: Hash Tables
6:25
HackerRank
Рет қаралды 1,4 МЛН
Data structures: Introduction to Trees
15:50
mycodeschool
Рет қаралды 1,4 МЛН
Algorithms: Memoization and Dynamic Programming
11:17
HackerRank
Рет қаралды 961 М.
Introduction to Trees (Data Structures & Algorithms #9)
10:30
Binary Trees - Data Structures Explained
10:18
Aaron Jack
Рет қаралды 113 М.
Algorithms: Bit Manipulation
9:06
HackerRank
Рет қаралды 530 М.
The LeetCode Fallacy
6:08
NeetCode
Рет қаралды 413 М.
every good programmer should know how to code this data structure (its easy)
21:08
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 50 М.
Main filter..
0:15
CikoYt
Рет қаралды 1,4 МЛН
Где раздвижные смартфоны ?
0:49
Не шарю!
Рет қаралды 615 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 1,1 МЛН
wireless switch without wires part 6
0:49
DailyTech
Рет қаралды 1,5 МЛН