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

@@ -9,6 +9,30 @@ categories:
patterns:
- matrix-traversal
function_signature: "def place_word_in_crossword(board: list[list[str]], word: str) -> bool:"
test_cases:
visible:
- input: { board: [["#", " ", "#"], [" ", " ", "#"], ["#", "c", " "]], word: "abc" }
expected: true
- input: { board: [[" ", "#", "a"], [" ", "#", "c"], [" ", "#", "a"]], word: "ac" }
expected: false
- input: { board: [["#", " ", "#"], [" ", " ", "#"], ["#", " ", "c"]], word: "ca" }
expected: true
hidden:
- input: { board: [[" "]], word: "a" }
expected: true
- input: { board: [["a"]], word: "a" }
expected: true
- input: { board: [["a"]], word: "b" }
expected: false
- input: { board: [[" ", " ", " "]], word: "abc" }
expected: true
- input: { board: [[" ", "#", " "]], word: "ab" }
expected: false
- input: { board: [["a", "b", "c"]], word: "abc" }
expected: true
description: |
You are given an `m x n` matrix `board`, representing the **current** state of a crossword puzzle. The crossword contains lowercase English letters (from solved words), `' '` to represent any **empty** cells, and `'#'` to represent any **blocked** cells.