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

@@ -11,6 +11,30 @@ patterns:
- greedy
- dynamic-programming
function_signature: "def check_valid_string(s: str) -> bool:"
test_cases:
visible:
- input: { s: "()" }
expected: true
- input: { s: "(*)" }
expected: true
- input: { s: "(*))" }
expected: true
hidden:
- input: { s: "" }
expected: true
- input: { s: "(*" }
expected: true
- input: { s: "(((((*(()((((*((**(((()()*)()()()*((((**)())*)*)))))))(())(()))())((*()()(((()((()*(*)(*)*()(((((*)()" }
expected: false
- input: { s: "***" }
expected: true
- input: { s: "(((*)" }
expected: false
- input: { s: "(*)(*" }
expected: true
description: |
Given a string `s` containing only three types of characters: `'('`, `')'` and `'*'`, return `true` *if* `s` *is **valid***.