feat(content): hidden test cases
This commit is contained in:
@@ -26,6 +26,12 @@ test_cases:
|
||||
expected: [[1, 1]]
|
||||
- input: { candidates: [2, 3, 5], target: 5 }
|
||||
expected: [[2, 3], [5]]
|
||||
- input: { candidates: [2, 7, 6, 3, 5, 1], target: 9 }
|
||||
expected: [[1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2], [1, 1, 1, 1, 1, 1, 3], [1, 1, 1, 1, 1, 2, 2], [1, 1, 1, 1, 2, 3], [1, 1, 1, 1, 5], [1, 1, 1, 2, 2, 2], [1, 1, 1, 3, 3], [1, 1, 1, 6], [1, 1, 2, 2, 3], [1, 1, 2, 5], [1, 1, 7], [1, 2, 2, 2, 2], [1, 2, 3, 3], [1, 2, 6], [1, 3, 5], [2, 2, 2, 3], [2, 2, 5], [2, 7], [3, 3, 3], [3, 6]]
|
||||
- input: { candidates: [8, 7, 4, 3], target: 11 }
|
||||
expected: [[3, 4, 4], [3, 8], [4, 7]]
|
||||
- input: { candidates: [5, 10], target: 15 }
|
||||
expected: [[5, 5, 5], [5, 10]]
|
||||
|
||||
description: |
|
||||
Given an array of **distinct** integers `candidates` and a target integer `target`, return *a list of all **unique combinations** of* `candidates` *where the chosen numbers sum to* `target`. You may return the combinations in **any order**.
|
||||
|
||||
Reference in New Issue
Block a user