feat(content): hidden test cases
This commit is contained in:
@@ -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***.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user