FACEBOOK CODING INTERVIEW QUESTION - LOWEST COMMON ANCESTOR

  Рет қаралды 8,848

AlgosWithMichael

AlgosWithMichael

Күн бұрын

Пікірлер: 24
@manofacertainrage856
@manofacertainrage856 2 жыл бұрын
I was taught a solution to this problem in a format that took roughly 30 minutes and left me confused. I looked for a backup explanation from my first three go-to people, didn't find one, and then found your explanation. Simple. Perfect. Thank you. The sad thing is that I had this question asked at ... :-)
@madhavoberoi6441
@madhavoberoi6441 4 жыл бұрын
Undoubtedly one of the most underrated KZbinr/ teacher on KZbin!! Love your work man!!
@AlgosWithMichael
@AlgosWithMichael 4 жыл бұрын
That means alot to me, thank you so much for watching! More videos on the way
@krutikapatil5449
@krutikapatil5449 3 жыл бұрын
This and the text justification videos are the best I have seen so far. Very clear explanation. Neatly done. Great work! And thank you!
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Wow, thanks!
@agamdeeparora2342
@agamdeeparora2342 2 жыл бұрын
Your Explanation is probably the best. Don't stop making programming videos. Love it.
@AlgosWithMichael
@AlgosWithMichael 2 жыл бұрын
Thanks, will do!
@agamarora7906
@agamarora7906 2 жыл бұрын
@@AlgosWithMichael Can you make please videos for these questions (1703)Minimum Adjacent Swaps for K Consecutive Ones, (1896)Minimum Cost to Change the Final Value of Expression and (564)Find the Closest Palindrome
@kapilrules
@kapilrules 3 жыл бұрын
You are the best man. the way you simplify things I became your huge fan
@juliahuanlingtong6757
@juliahuanlingtong6757 3 жыл бұрын
crystal clear explanation!!! Aboslutely love it! Although if we use preorder instead of postorder, it seems to improve the performance a lot( If hit, terminate recurisve immediately, rather than go left and righ, and then itself).
@baurks
@baurks 3 жыл бұрын
Michael - thanks so much for these videos. You put me at ease.
@montuedge
@montuedge 3 жыл бұрын
Superb explaination
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thanks :)
@valentinmorales2633
@valentinmorales2633 3 жыл бұрын
Amazing explanation man!
@gaganharjai3387
@gaganharjai3387 3 жыл бұрын
thanks for your clean explanations. It fails for cases where we have p and q same, like 101 24 48 15 -1 26 39 28 37 38 4 33 -1 -1 32 34 6 10 -1 43 -1 -1 2 -1 47 17 23 7 41 36 -1 8 -1 -1 44 -1 -1 13 16 18 27 29 -1 -1 42 -1 3 11 -1 -1 -1 25 19 46 -1 -1 -1 22 14 -1 20 49 35 -1 -1 1 -1 -1 5 -1 12 -1 -1 -1 -1 -1 -1 9 -1 -1 30 -1 -1 21 -1 -1 -1 50 40 -1 -1 -1 -1 -1 -1 -1 31 -1 -1 45 -1 -1 43 43
@geekySRM
@geekySRM 3 жыл бұрын
This was awesome.
@geekySRM
@geekySRM 3 жыл бұрын
Subbed! ❤️
@priyaarya9354
@priyaarya9354 3 жыл бұрын
really nice explanation
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Thank you
@zhenliu4779
@zhenliu4779 2 жыл бұрын
God-Like coder
@kumarc4853
@kumarc4853 3 жыл бұрын
Thank you
@AlgosWithMichael
@AlgosWithMichael 3 жыл бұрын
Anytime!
@kumarc4853
@kumarc4853 3 жыл бұрын
@@AlgosWithMichael hey Michael can you pls also provide ways of thinking, how to approach a problem if you have never seen it before. sort of a toolkit to apply on problems or how to work through examples and come up with an approach
@montuedge
@montuedge 3 жыл бұрын
@5:30 lets code it
LOWEST COMMON ANCESTOR OF A BINARY TREE III [PYTHON]
16:38
Cracking FAANG
Рет қаралды 12 М.
Lowest Common Ancestor Between 2 Binary Tree Nodes (A Recursive Approach)
20:30
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 20 МЛН
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 22 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 4,7 МЛН
FACEBOOK CODING QUESTION - ADD STRINGS (LEETCODE)
12:23
AlgosWithMichael
Рет қаралды 12 М.
Lowest Common Ancestor (LCA) Problem | Eulerian path method
17:02
WilliamFiset
Рет қаралды 45 М.
L27. Lowest Common Ancestor in Binary Tree | LCA | C++ | Java
14:09
take U forward
Рет қаралды 328 М.
Amazon Coding Interview Question - First Missing Positive (LeetCode)
20:47
Lowest Common Ancestor of a binary tree | Leetcode #236
17:29
Amazon Coding Interview Question - Sum of Left Leaves (LeetCode)
16:17
AlgosWithMichael
Рет қаралды 4,6 М.
LOWEST COMMON ANCESTOR OF A BINARY TREE I | PYTHON | LEETCODE 236
12:48
Lowest Common Ancestor Binary Tree
11:08
Tushar Roy - Coding Made Simple
Рет қаралды 252 М.
FAANG Coding Interview Question - Container With Most Water (LeetCode)
13:30