MAINE BHI PAHLA APPROACH USE KARKE SOLVE KARNE KI KOSHISH KIYA BUT TESTCASE FAIL HO JAYEGA IF BST KEVAL EK SIDE ME JA RAHA HO
@ridimabajpai49113 жыл бұрын
Hey!! I have been following your videos and they are great.... Superb explanation... Just a request plz upload largest bst video soon
@sagartaak40172 жыл бұрын
2-1 = 3 and 2+1 =4 noice mazak se hat kar thanx for your content bro love and respect from Himachal !!!!
@altafmazhar77622 жыл бұрын
Nice Bro good to see you are going from brute force to optimal
@AbhishekMishra-me4mu2 жыл бұрын
Can we do this by calculating inorder successor and inorder predecessor of all the leaf nodes and comparing each time if (inorder successor of leaf node i) - 1==leaf node i==(predecessor of node +1) then return true; ??
@Priyasingh-xr6df3 жыл бұрын
why a new node is always is added at the leaf node? we can also insert a new node at internal nodes also which has only one child. In this question the first example they have given, we can insert 3 after 2, which is an internal node.
@carry14493 жыл бұрын
you may define a dead end as a Node that will never ever have even a single child
@srinivaskonduri74963 жыл бұрын
Great video.
@shiveshpandeyiiitbhopal54633 жыл бұрын
Is 7 not the dead-end in the example you are showing?? Because we can't insert any node to it's right.
@ranvijaypatel32132 жыл бұрын
7 is not a end (leaf) node ...
@Ajit-p9h Жыл бұрын
why a node having single child can't be a dead end? In your exmple 7 can also be a dead end.
@TekaneChaitanya3 жыл бұрын
Dusare channel par dsa ke videos nahi aa rahe jaldi c++ ke
@CodeLibrary3 жыл бұрын
It will come in all alternate days
@rdxgaurav34832 жыл бұрын
2-1 = 3 Haha , kabhi kabhi expert minds bhi hil jaate hai
@The_Gurugram_Voyager3 жыл бұрын
Why this video got deleted yesterday?
@CodeLibrary3 жыл бұрын
Because by mistake I said the wrong time complexity in the second approach