Ссылки и html тэги не поддерживаются


Комментарии:

@alokdeshpande5517
@alokdeshpande5517 - 09.03.2020 16:51

Excellent explanation 👍

Ответить
@abhishekkumargupta3043
@abhishekkumargupta3043 - 01.04.2020 16:33

This man is awesome. Thank you.

Ответить
@swj_69420
@swj_69420 - 05.04.2020 21:50

Can you please tell how is this inorder? Shouldn't it be preorder

Ответить
@ayushthakur733
@ayushthakur733 - 18.04.2020 15:55

What if the root node is one of the two node ??

Ответить
@ayushthakur733
@ayushthakur733 - 21.04.2020 05:08

Explain it for (j,c).... 🤨

Ответить
@oneworldofstem7724
@oneworldofstem7724 - 06.05.2020 15:11

I wonder when you first encounter this question, how do you figure out the possible steps for getting the answer? I am having trouble of algorithm questions recently. Very hard for me to think of the answer

Ответить
@adaz2724
@adaz2724 - 27.05.2020 21:25

I love this guy, very clear explanation !!!

Ответить
@goel.kartikay
@goel.kartikay - 09.06.2020 16:37

Great Video...
PS-: can watch it at 4x comfortably

Ответить
@dipakkumarsinha5811
@dipakkumarsinha5811 - 09.06.2020 17:11

Bahut badhiya sir .... Maja a Gaya sir

Ответить
@VenkatGonu
@VenkatGonu - 07.07.2020 03:06

code doesn't work if one of the node is not present, ideally it should return null but it returns the other node which is found

Ответить
@jagrit07
@jagrit07 - 07.07.2020 12:31

Thank you

Ответить
@unboxingzindagi9972
@unboxingzindagi9972 - 10.07.2020 17:49

Love you bro. You are so real!!

Ответить
@shadesofspice5315
@shadesofspice5315 - 14.07.2020 19:12

Clear explanation. Easy to understand

Ответить
@payalsagar1808
@payalsagar1808 - 15.07.2020 12:29

the best!☺

Ответить
@prashantverma3347
@prashantverma3347 - 26.07.2020 12:32

thank you

Ответить
@ridimamittal4064
@ridimamittal4064 - 02.08.2020 10:21

make more videos plzzzzzzzzzzz :(

Ответить
@pradeepsingh-cg8iv
@pradeepsingh-cg8iv - 04.08.2020 17:50

Thanks bro

Ответить
@lokeshnegi5051
@lokeshnegi5051 - 05.08.2020 20:28

well explained..

Ответить
@sushmanthnatha4019
@sushmanthnatha4019 - 13.08.2020 23:10

Sir, I have watched many other people videos but your's are simply crystal clear

Ответить
@ivantishchenko4686
@ivantishchenko4686 - 22.08.2020 13:24

The author is a genius. Thank you very much!

Ответить
@angadrajsingh4311
@angadrajsingh4311 - 30.08.2020 09:53

Sir amazing explanation

Ответить
@hritikagarwal7676
@hritikagarwal7676 - 02.09.2020 21:38

It would be far better if you also explain the intuition to this solution. Knowing the algorithm makes half of the work but knowing what led to this algorithm will make the solution video totally worthy.

Ответить
@SaurabhSingh-ch6nc
@SaurabhSingh-ch6nc - 14.09.2020 19:12

this is how the DSA faculty looks like!

Ответить
@sayalishelke9597
@sayalishelke9597 - 23.09.2020 14:58

Best explanantion :) .Subscribed

Ответить
@adityaojha2701
@adityaojha2701 - 26.11.2020 08:18

It's good

Ответить
@jingli2168
@jingli2168 - 27.12.2020 15:02

Should be pre-order instead of in-order.

Ответить
@rishabhjain4546
@rishabhjain4546 - 02.02.2021 06:01

Great Video. Thank you sir. What happens in the case when there is only one value present in the tree, and the other value is not. In that case, the algorithm is not working.

Ответить
@bogdandumitrescu8987
@bogdandumitrescu8987 - 07.02.2021 22:18

No need for "else". Great code walkthrough and explanation !

Ответить
@GauravKawatrakir
@GauravKawatrakir - 06.03.2021 10:41

This solution not work when one of the two nodes is found and not the second one. So its return the founded node.

Ответить
@sjwang3892
@sjwang3892 - 23.04.2021 10:51

Absolutely love the clear explanation and walkthrough. Thank you!

Ответить
@tanmayagarwal8513
@tanmayagarwal8513 - 24.04.2021 22:08

OKK .. lets just appreciate his innocent smile!

Ответить
@chetannikam8129
@chetannikam8129 - 24.05.2021 08:29

nice video.............................

Ответить
@harirahul7703
@harirahul7703 - 05.06.2021 10:06

great explanation but i think this is pre order traversal

Ответить
@GROW_WITH_GBT
@GROW_WITH_GBT - 12.06.2021 20:02

Thanku ji

Ответить
@adityachauhan1182
@adityachauhan1182 - 17.06.2021 14:19

this solution will not work in case if B==root->node ans c is not present

Ответить
@harshshukla3358
@harshshukla3358 - 27.06.2021 20:20

sir this is a very good explanation, just one point that you should have told that we are taking the assumption that both the nodes exist in the tree

Ответить
@HoanNguyen-fc8vb
@HoanNguyen-fc8vb - 17.07.2021 05:14

Thank you for your tutorial. You are one of the best so far. For the if(left !=null && right = null) return root. Is that right or (right !=null) .Please explain. Thank you very much.

Ответить
@sandeepnallala48
@sandeepnallala48 - 10.08.2021 09:38

thanks for making things clear and simpler sir

Ответить
@sagarmalshankhala6826
@sagarmalshankhala6826 - 09.10.2021 03:49

Sir ji, apka teaching ka FAN ho gya hu me to .. love you.
Some of the best things about your video,
1. your slow explanation.
2. code walk through
3. Complete explanation with lots of examples.

Ответить
@beaglesnlove580
@beaglesnlove580 - 14.11.2021 00:26

Ur a amazing teacher

Ответить
@Dizzydizzydizzy7
@Dizzydizzydizzy7 - 27.01.2022 00:05

usually i have a hard and long time understanding these kinds of videos, but your videos are so clear I feel like even a toddler can understand

Ответить
@司雨-w6b
@司雨-w6b - 11.02.2022 04:28

so clear explanation!

Ответить
@andreeachirita9801
@andreeachirita9801 - 14.04.2022 11:08

really good method of explaining!!

Ответить
@suryajena1575
@suryajena1575 - 14.05.2022 10:32

This won't work when one of the two nodes is not found.

Ответить
@sharmapeeyoosh
@sharmapeeyoosh - 03.07.2022 10:14

Hello, Thanks for explaining so well, In your logic for finding out LCA works fine if both the nodes are present and both the nodes are part of different sub tree. Two situation does not handle in this code. 1) if either of the node is not present in tree itself 2) if second node is part of subtree of first node. for exm, P and L nodes. If user enters these two nodes then this algorithm will not work.
Solution algorithm:
1) Both the nodes must present in tree otherwise print error and return.
2) if left and right returns non NULL, this is LCA. Print LCA and return NULL.
3) if second node is in subtree of first node then only first node we will return till root node. in such case main function shall have a piece of code, if final return is non NULL then this is the LCA, print LCA.
I can post the code if someone needs. thanks

Ответить
@PIYUSH-lz1zq
@PIYUSH-lz1zq - 10.07.2022 15:14

DAMM !!! ABSOLUTLY SPOT ON

Ответить
@user-uh4be8ci7i
@user-uh4be8ci7i - 09.08.2022 22:04

You are the best teacher sir thank you so much for all this solutions

Ответить
@pi_by_2224
@pi_by_2224 - 12.08.2022 21:19

try this approach
struct TreeNode* lowestCommonAncestor(struct TreeNode* root, struct TreeNode* p, struct TreeNode* q) {

if (p->val<root->val && q->val<root->val)
return lowestCommonAncestor(root->left,p,q);
if (p->val>root->val && q->val>root->val)
return lowestCommonAncestor(root->right,p,q);
return root;
}

Ответить
@___vandanagupta___
@___vandanagupta___ - 28.05.2023 17:46

i was not able to understand this question's solution from any other video but your simple explanation worked and i will never forget this solution again, thanks so much sir!

Ответить