Checking if BST

kens's Avatar, Join Date: Jul 2007
Light Poster
WAP to check if a given tree is a BST.
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.