Given a binary tree. Write a function which takes the root node and checks if the given tree is a BST or not.
struct node
{
int data;
struct node *lChild;
struct node *rChild;
};
struct node
{
int data;
struct node *lChild;
struct node *rChild;
};
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum
|
|