coin_change
Computes minimum coins needed for a target amount and counts distinct combinations from given denominations.
Instructions
Compute minimum coins for a target amount and count distinct combinations.
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": {
"coins": "<coins>",
"amount": "<amount>"
},
"name": "coin_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coins | Yes | Coin denominations | |
| amount | Yes | Target amount (max 1,000,000) |