rb_tree_sim
Build a red-black tree from numeric keys and return its inorder traversal, height, black height, and validity check.
Instructions
Build a red-black tree from a list of keys. Returns inorder traversal, tree height, black height, and validity check.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"keys": "<keys>"
},
"name": "rb_tree_sim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Keys to insert into the red-black tree |