get_approach
Analyzes a LeetCode problem statement to recommend a DSA approach, pattern name, and time/space complexity, helping you choose the right strategy.
Instructions
Takes a LeetCode problem statement and returns the recommended DSA approach, pattern name, and time/space complexity.
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>"
},
"name": "get_approach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problem | Yes | The full LeetCode problem statement |