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:

Get hands-on with 1400+ tech skills courses.