HackerRank - Height of a Binary Tree | Full solution with code and animations | Study Algorithms

  Рет қаралды 3,991

Nikhil Lohia

Nikhil Lohia

Күн бұрын

Пікірлер: 13
@bigjofa
@bigjofa 8 күн бұрын
Fantastic explanation, this deserves way more likes, thanks man! Your help while studying for interviews is invaluable, I hope great things happen for you and your family, keep up the good work!! 😀
@nikoo28
@nikoo28 7 күн бұрын
that is so heartwarming :)
@Ayush-yk6zf
@Ayush-yk6zf 3 жыл бұрын
Really a underrated channel. Great explanation.Thank you sir
@bittujacob8776
@bittujacob8776 3 жыл бұрын
Yes true, very underrated channel! Come on KZbin!
@Sana-oi6mw
@Sana-oi6mw Жыл бұрын
Good explanation sir jii
@nikoo28
@nikoo28 Жыл бұрын
you are welcome!!
@mashapoguajay3322
@mashapoguajay3322 3 жыл бұрын
What is an ootimized soln
@nikoo28
@nikoo28 3 жыл бұрын
An optimized solution is one which will consume the minimum memory and time possible to determine the answer
@mashapoguajay3322
@mashapoguajay3322 3 жыл бұрын
@@nikoo28 bro during online coding interview s we have to write only optimization solution
@nikoo28
@nikoo28 3 жыл бұрын
That's correct. If you check the link in description to my github profile, you can find the optimized solution. The video also covers the optimized approach.
@mashapoguajay3322
@mashapoguajay3322 3 жыл бұрын
Bro by using max(lh,rh) recursive approch and adding 1 we can get max deapth no
@nikoo28
@nikoo28 3 жыл бұрын
Yes, but even then you take up the memory space in your recursion stack.
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 13 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 25 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 63 МЛН
Height of a Binary Tree / Maximum depth of a binary tree Algorithm [REVISITED]
16:50
Vivekanand Khyade - Algorithm Every Day
Рет қаралды 119 М.
Binary Search Trees in Python: Introduction - Insertion and Search
25:37
LucidProgramming
Рет қаралды 45 М.
What is Balancing a binary tree and why do we need balancing
25:39
Simple Snippets
Рет қаралды 36 М.
L14. Maximum Depth in Binary Tree | Height of Binary Tree | C++ | Java
8:05