| 10 | }; |
| 11 | |
| 12 | struct node *newNode(int item) |
| 13 | { |
| 14 | struct node *temp = (struct node *)malloc(sizeof(struct node)); |
| 15 | temp->key = item; |
| 16 | temp->left = temp->right = NULL; |
| 17 | return temp; |
| 18 | } |
| 19 | struct node *insert(struct node *node, int key) |
| 20 | { |
| 21 | if (node == NULL) |