Create a node
| 27 | |
| 28 | // Create a node |
| 29 | struct Node *newNode(int key) |
| 30 | { |
| 31 | struct Node *node = (struct Node *) |
| 32 | malloc(sizeof(struct Node)); |
| 33 | node->key = key; |
| 34 | node->left = NULL; |
| 35 | node->right = NULL; |
| 36 | node->height = 1; |
| 37 | return (node); |
| 38 | } |
| 39 | |
| 40 | // Right rotate |
| 41 | struct Node *rightRotate(struct Node *y) |
no outgoing calls
no test coverage detected