Finish problem 0410-split-array-largest-sum

This commit is contained in:
Johan Sandoval
2026-07-23 15:08:58 -05:00
parent 25956cc25b
commit 472bd07e11
2 changed files with 35 additions and 0 deletions
@@ -0,0 +1,13 @@
import pytest
from solution import Solution
@pytest.mark.parametrize(
"nums, k, expected",
[
([7, 2, 5, 10, 8], 2, 18),
([1, 2, 3, 4, 5], 2, 9),
],
)
def test_split_array(nums, k, expected):
assert Solution().splitArray(nums, k) == expected