Wednesday, April 1, 2009

Check if a given binary tree is Binary Search Tree.

Hi,

The easiest way to solve this question to do in order traversal of tree and store the result in an array.
The array should be a sorted one if it is BST

No comments:

Post a Comment