Saturday, February 3, 2018

Binary search tree algorithm

Feb. 3, 2018


Introduction


It is another mock interview at 4:00 pm, I spent around 15 minutes to analyze the algorithm and write the code. I worked on the binary search tree algorithm called Find inorder successor, and the peer shared with me his advice, it is also easy to check first left parent instead of comparing the value with parent node's value.


Code review


C# code is here.


No comments:

Post a Comment