feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -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**: