feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 8544efb5bf
commit e0bf8cda01
134 changed files with 2075 additions and 0 deletions

View File

@@ -9,6 +9,28 @@ categories:
patterns:
- dynamic-programming
function_signature: "def stone_game_iii(stone_value: list[int]) -> str:"
test_cases:
visible:
- input: { stone_value: [1, 2, 3, 7] }
expected: "Bob"
- input: { stone_value: [1, 2, 3, -9] }
expected: "Alice"
- input: { stone_value: [1, 2, 3, 6] }
expected: "Tie"
hidden:
- input: { stone_value: [1] }
expected: "Alice"
- input: { stone_value: [-1, -2, -3] }
expected: "Tie"
- input: { stone_value: [1, 2, 3, -1, -2, -3, 7] }
expected: "Alice"
- input: { stone_value: [-1] }
expected: "Bob"
- input: { stone_value: [5, -2, -3, 4] }
expected: "Alice"
description: |
Alice and Bob continue their games with piles of stones. There are several stones **arranged in a row**, and each stone has an associated value which is an integer given in the array `stoneValue`.