algo_stress_test
Identify algorithmic errors by running your fast solution against a brute-force reference on randomized inputs until a mismatch appears.
Instructions
Automated differential tester: runs a fast solution against a brute-force baseline using randomized inputs until a failing edge case is found
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": {
"solutionCode": "<solutionCode>",
"bruteForceCode": "<bruteForceCode>",
"generatorCode": "<generatorCode>"
},
"name": "algo_stress_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language used (default: python) | |
| solutionCode | Yes | Fast algorithm to test | |
| generatorCode | Yes | Random testcase generator code | |
| maxIterations | No | Max randomized iterations to run (default: 30) | |
| bruteForceCode | Yes | Slow but 100% correct reference algorithm |