feat(content): function signatures + test cases
This commit is contained in:
@@ -8,6 +8,26 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def is_one_bit_character(bits: list[int]) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { bits: [1, 0, 0] }
|
||||
expected: true
|
||||
- input: { bits: [1, 1, 1, 0] }
|
||||
expected: false
|
||||
hidden:
|
||||
- input: { bits: [0] }
|
||||
expected: true
|
||||
- input: { bits: [0, 0] }
|
||||
expected: true
|
||||
- input: { bits: [1, 0] }
|
||||
expected: false
|
||||
- input: { bits: [1, 1, 0] }
|
||||
expected: true
|
||||
- input: { bits: [0, 1, 0] }
|
||||
expected: false
|
||||
|
||||
description: |
|
||||
We have two special characters:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user