Solution Review: Find Max

Let’s take a detailed look at the previous challenge’s solution.

We'll cover the following

Solution

In a BST, the rightmost child of the tree is the node with the maximum value. We’ll iteratively traverse the right subtree until we hit the leaf node as shown in the slide below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.