delete_node
Delete an integer key from a specified BST or AVL tree, updating the tree and rebalancing AVL trees as needed.
Instructions
Delete a key from the specified tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The integer key to delete | |
| treeType | Yes | The type of tree to delete from |