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

@@ -11,6 +11,28 @@ patterns:
- backtracking
- dfs
function_signature: "def brace_expansion_ii(expression: str) -> list[str]:"
test_cases:
visible:
- input: { expression: "{a,b}{c,{d,e}}" }
expected: ["ac", "ad", "ae", "bc", "bd", "be"]
- input: { expression: "{{a,z},a{b,c},{ab,z}}" }
expected: ["a", "ab", "ac", "z"]
hidden:
- input: { expression: "a" }
expected: ["a"]
- input: { expression: "{a,b}" }
expected: ["a", "b"]
- input: { expression: "{a,b}c" }
expected: ["ac", "bc"]
- input: { expression: "a{b,c}d" }
expected: ["abd", "acd"]
- input: { expression: "{a}{b}" }
expected: ["ab"]
- input: { expression: "{{a}}" }
expected: ["a"]
description: |
Under the grammar given below, strings can represent a set of lowercase words. Let `R(expr)` denote the set of words the expression represents.