feat(content): hidden test cases
This commit is contained in:
@@ -10,6 +10,28 @@ categories:
|
||||
patterns:
|
||||
- dynamic-programming
|
||||
|
||||
function_signature: "def is_match(s: str, p: str) -> bool:"
|
||||
|
||||
test_cases:
|
||||
visible:
|
||||
- input: { s: "aa", p: "a" }
|
||||
expected: false
|
||||
- input: { s: "aa", p: "a*" }
|
||||
expected: true
|
||||
- input: { s: "ab", p: ".*" }
|
||||
expected: true
|
||||
hidden:
|
||||
- input: { s: "a", p: "a" }
|
||||
expected: true
|
||||
- input: { s: "a", p: "." }
|
||||
expected: true
|
||||
- input: { s: "", p: "a*" }
|
||||
expected: true
|
||||
- input: { s: "aab", p: "c*a*b" }
|
||||
expected: true
|
||||
- input: { s: "mississippi", p: "mis*is*p*." }
|
||||
expected: false
|
||||
|
||||
description: |
|
||||
Given an input string `s` and a pattern `p`, implement regular expression matching with support for `'.'` and `'*'` where:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user