insert_node
Insert an integer key into a specified BST or AVL tree to learn and visualize insertion and balancing behavior.
Instructions
Insert a key into the specified tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The integer key to insert | |
| treeType | Yes | The type of tree to insert into |