get_complexity
Analyze a LeetCode problem and your solution code to return time and space complexity with a clear explanation.
Instructions
Takes a LeetCode problem and the user's solution code, returns time and space complexity analysis with explanation.
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>",
"solution_code": "<solution_code>"
},
"name": "get_complexity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problem | Yes | The full LeetCode problem statement | |
| solution_code | Yes | The user's solution code to analyze |