feat(content): more test cases
This commit is contained in:
@@ -9,6 +9,26 @@ categories:
|
||||
patterns:
|
||||
- dynamic-programming
|
||||
|
||||
function_signature: "def coin_change(coins: list[int], amount: int) -> int:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { coins: [1, 2, 5], amount: 11 }
|
||||
expected: 3
|
||||
- input: { coins: [2], amount: 3 }
|
||||
expected: -1
|
||||
- input: { coins: [1], amount: 0 }
|
||||
expected: 0
|
||||
hidden:
|
||||
- input: { coins: [1], amount: 1 }
|
||||
expected: 1
|
||||
- input: { coins: [1, 3, 4], amount: 6 }
|
||||
expected: 2
|
||||
- input: { coins: [2, 5, 10], amount: 7 }
|
||||
expected: 2
|
||||
- input: { coins: [186, 419, 83, 408], amount: 6249 }
|
||||
expected: 20
|
||||
|
||||
description: |
|
||||
You are given an integer array `coins` representing coins of different denominations and an integer `amount` representing a total amount of money.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user