feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 72f7833c6c
commit a1a4eeaed7
134 changed files with 2075 additions and 0 deletions

View File

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