feat(content): hidden test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def is_good_array(nums: list[int]) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { nums: [12, 5, 7, 23] }
|
||||
expected: true
|
||||
- input: { nums: [29, 6, 10] }
|
||||
expected: true
|
||||
- input: { nums: [3, 6] }
|
||||
expected: false
|
||||
hidden:
|
||||
- input: { nums: [1] }
|
||||
expected: true
|
||||
- input: { nums: [2, 4, 6, 8] }
|
||||
expected: false
|
||||
- input: { nums: [6, 9, 15, 21] }
|
||||
expected: false
|
||||
- input: { nums: [5, 7] }
|
||||
expected: true
|
||||
- input: { nums: [100, 99] }
|
||||
expected: true
|
||||
- input: { nums: [2, 3] }
|
||||
expected: true
|
||||
|
||||
description: |
|
||||
Given an array `nums` of positive integers. Your task is to select some subset of `nums`, multiply each element by an integer and add all these numbers.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user