feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

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