feat(content): hidden test cases
This commit is contained in:
@@ -9,6 +9,28 @@ categories:
|
||||
patterns:
|
||||
- dynamic-programming
|
||||
|
||||
function_signature: "def max_subarray_sum_circular(nums: list[int]) -> int:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { nums: [1, -2, 3, -2] }
|
||||
expected: 3
|
||||
- input: { nums: [5, -3, 5] }
|
||||
expected: 10
|
||||
- input: { nums: [-3, -2, -3] }
|
||||
expected: -2
|
||||
hidden:
|
||||
- input: { nums: [1] }
|
||||
expected: 1
|
||||
- input: { nums: [-1] }
|
||||
expected: -1
|
||||
- input: { nums: [3, -1, 2, -1] }
|
||||
expected: 4
|
||||
- input: { nums: [3, -2, 2, -3] }
|
||||
expected: 3
|
||||
- input: { nums: [1, 2, 3, 4, 5] }
|
||||
expected: 15
|
||||
|
||||
description: |
|
||||
Given a **circular integer array** `nums` of length `n`, return *the maximum possible sum of a non-empty **subarray** of* `nums`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user