Analyze Complexity
analyze_complexityEstimate asymptotic Big-O time complexity of a code snippet through structural analysis. Identify performance scaling without running the code.
Instructions
Estimate the asymptotic (Big-O) time complexity of a code snippet via structural analysis.
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": {
"code": "<code>"
},
"name": "analyze_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source code snippet to analyze structurally for its asymptotic time complexity | |
| language | No | Language `code` is written in; default 'python3' | python3 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||