feat(content): function signatures + test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def xor_game(nums: list[int]) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { nums: [1, 1, 2] }
|
||||
expected: false
|
||||
- input: { nums: [0, 1] }
|
||||
expected: true
|
||||
- input: { nums: [1, 2, 3] }
|
||||
expected: true
|
||||
hidden:
|
||||
- input: { nums: [1] }
|
||||
expected: false
|
||||
- input: { nums: [0, 0] }
|
||||
expected: true
|
||||
- input: { nums: [1, 1] }
|
||||
expected: true
|
||||
- input: { nums: [1, 2, 3, 4] }
|
||||
expected: true
|
||||
- input: { nums: [5, 5, 5] }
|
||||
expected: false
|
||||
- input: { nums: [1, 2, 4, 8] }
|
||||
expected: true
|
||||
|
||||
description: |
|
||||
You are given an array of integers `nums` representing the numbers written on a chalkboard.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user