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.
How to find the smallest element in a Binary Tree (Not BST)? Sample C/C++ code would be helpful.