find_equilibrium_index
Finds the equilibrium index in an array where the sum of elements to the left equals the sum of elements to the right. Returns -1 if no such index exists. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_equilibrium_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| arr | No | array of numbers, required, the input array to search, no units, no default |