feat(content): more test cases

This commit is contained in:
2025-07-13 19:25:39 +01:00
parent d2b74b6863
commit 85fea3a4bb
94 changed files with 1840 additions and 0 deletions

View File

@@ -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.