Advertisement
Rummeris

bst.h

Nov 17th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. struct Node{
  2.     int data;
  3.     struct Node *left;
  4.     struct Node *right;
  5. };
  6. typedef struct Node Node;
  7.  
  8. Node* insertNode(Node *root, int value);
  9. Node* freeSubtree(Node *N);
  10. int countNodes(Node *N);
  11. Node* deleteNode(Node* root, int value);
  12. void printSubtree(Node *N);
  13. int sumSubtree(Node *N);
  14. Node* balanceTree(Node* root);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement