analyze_complexity
Calculate time and space complexity of code from problem description. Verify algorithmic efficiency and ensure optimal performance.
Instructions
Rigorously calculate time and space complexity of code.
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": {
"problem": "<problem>",
"code": "<code>"
},
"name": "analyze_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | User submitted code. | |
| problem | Yes | The full text of the problem description. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||