INORDER PREDECESSOR in Binary Search Tree

preview_player
Показать описание
INORDER PREDECESSOR in Binary Search Tree.
Рекомендации по теме
Комментарии
Автор

Not all heroes wear capes some teach BSTs.

ishan_kumar
Автор

Vivekanand Sir, you are just awesome.
I love your dedication for uploading the videos almost daily.
It is nice to see people from India having such keen interest in algorithms.

You can easily get a very very good job here in the US sir.
DS is the most important aspect for any Software Engineering interviews here.

Anyways, thank you for the awesome work.
I hope that your channel gets more famous.

sagardafle
Автор

you did a great job seriously. i was stuck for 2nd case. and i found this video today.

Baba-Ji-Ka
Автор

you are doing a great job. I appreciate you for explaining the correctness of the algorithm in the second case. I hope you keep explaining the correctness of all algorithms, if possible. And thanks a lot for creating such a great video in this topic.

chrisisherewhat
Автор

salute to teachers like you .Student need this kind of teachers

Msd-bkyc
Автор

it was a difficult topic to explain ..in general trees is difficult to teach ... thanks for explaining it well.

vasantprabhu
Автор

Tutorial is useful.But if you discuss about the time and space complexities, it'll be very useful. Thanks:)

vasanthkumarmunusamy
Автор

your teaching is awesomer sir....#respect

nayankhuman
Автор

Can't believe how can someone explain a algorithm in such a simple way... You are the best I have seen so far on youtube for algorithms. you explain things in such a simple language that a 5 year kid can code :D.

ramakantasamal
Автор

Thank you Vivekanand. You helped me again!

cswalker
Автор

I think it would be great if you had a board or something where you wrote the complete algo. Looking back I see the bottom right of your white board is very close to the solution of my problem which is:

function inOrderPredecessor(node, target) {
var candidate = null;
while (node) {
if (node.val < target) {
candidate = node.val;
node = node.right;
} else {
node = node.left;
}
}
console.log(candidate)
return candidate;
}

shibmobileverse
Автор

You made my life easy. Thank you so much.

saharrohani
Автор

Ohoohoooo what an amazing tutorial....

Sudeshna-Pradhan-
Автор

Hi Vivekanand, Can you make video on convert binary tree to binary search tree.

sachinrknv
Автор

You are awesome!!! Great Video!! Thanks!

xiangwingrace
Автор

Could you please upload a video on how to find the maximum sum path of a binary tree?
Here is the full question:
Given a binary tree consisting of nodes with positive integer values, write a method that returns the maximum sum of data values obtained by traversing nodes along a path between any 2 nodes of the tree. The path must originate and terminate at 2 different nodes of the tree, and the maximum sum is obtained by summing all the data values of the nodes traversed along this path.

NS-efyu
Автор

if you know how to find closest smaller node in BST, you can write it in 5 lines

nathanqiu
Автор

Hi Sir,
will you please give numbers to all videos then it is more easy to under standard .

sirigiris
Автор

Can you please add

Given a binary tree, count the number of uni-value subtrees.
A Uni-value subtree means all nodes of the subtree have the same value.

samk
Автор

What happens if the key is not present?

ghoshdipan
join shbcf.ru