Determine if a binary search tree is valid or not.
Sigiloso
BOOL isBST(NODE root) { static NODE previous = NULL; if(root) { root = root->left; BOOL temp = isBST(root); if(!temp) return FALSE; if(previous != NULL && root->data data) return FALSE; previous = root; isBST(!root->right) return FALSE; } else return TRUE; }