feat(content): hidden test cases
This commit is contained in:
@@ -9,6 +9,30 @@ categories:
|
||||
patterns:
|
||||
- greedy
|
||||
|
||||
function_signature: "def can_be_valid(s: str, locked: str) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s: "))()))", locked: "010100" }
|
||||
expected: true
|
||||
- input: { s: "()()", locked: "0000" }
|
||||
expected: true
|
||||
- input: { s: ")", locked: "0" }
|
||||
expected: false
|
||||
hidden:
|
||||
- input: { s: "()", locked: "11" }
|
||||
expected: true
|
||||
- input: { s: ")(", locked: "00" }
|
||||
expected: true
|
||||
- input: { s: "((", locked: "11" }
|
||||
expected: false
|
||||
- input: { s: "))", locked: "11" }
|
||||
expected: false
|
||||
- input: { s: "((()", locked: "0000" }
|
||||
expected: true
|
||||
- input: { s: "((()))", locked: "111111" }
|
||||
expected: true
|
||||
|
||||
description: |
|
||||
A parentheses string is a **non-empty** string consisting only of `'('` and `')'`. It is valid if **any** of the following conditions is **true**:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user