top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

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

+2 votes
166 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...