Spread the post

Find Largest BST Element

Time complexity of this program O(n)

Accepted Output

Given BST tree node is:

468, 424, 538, 414, 463, 517, 554, 475, 543, 577

View Tree Click Here

468538554424517414475577463543

Result :

Large element is:[577]

Given BST tree node is:

502, 479, 528, 412, 481, 515, 590, 449, 536, 420

View Tree Click Here

502479528412481449420515590536

Result :

Large element is:[590]

Below in C implementation of this problem. Iterative approach.

Output
  BST Data is :  10  15  20  30  50  60  70  80  90
 Large element data is [90] 

Spread the post