Checking if BST

Light Poster
17Jul2007,22:16   #1
kens's Avatar
WAP to check if a given tree is a BST.
Go4Expert Founder
18Jul2007,09:15   #2
shabbir's Avatar
If
  • The left subtree of a node contains only values less than the node's value.
  • The right subtree of a node contains only values greater than or equal to the node's value.