top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to find the smallest and largest value from a binary search tree without extra variable?

+2 votes
487 views
How to find the smallest and largest value from a binary search tree without extra variable?
posted Oct 30, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

For finding smallest value in BST traverse left most node of the given BST.
For finding largest value in BST traverse right most node of the give BST.

answer Dec 7, 2015 by Rajan Paswan
...