Spread the post

Find Smallest element of BST

Time complexity of this program O(n)

Accepted Output

Given BST tree node is:

553, 455, 584, 404, 513, 574, 592, 511, 462, 475

View Tree Click Here

553455513511584462404574475592

Small element data is [404]

Given BST tree node is:

518, 408, 530, 403, 455, 529, 587, 404, 451, 551

View Tree Click Here

518530408455403529587451404551

Small element data is [403]

Below in C implementation of this problem. Iterative approach.

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

Spread the post