Here is the simple code , that finds out the minimum of a tree:
/* Tree Minimum */
Tree* minTree(struct Tree *node)
{
if(node == NULL) return NULL;
while(node->left)
node = node -> left;
return node;
}
For other operations and complete code refer to : click here
/* Tree Minimum */
Tree* minTree(struct Tree *node)
{
if(node == NULL) return NULL;
while(node->left)
node = node -> left;
return node;
}
For other operations and complete code refer to : click here
No comments:
Post a Comment