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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coins | Yes | Coin denominations | |
| amount | Yes | Target amount (max 1,000,000) |