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,26 @@ patterns:
- binary-search
- matrix-traversal
function_signature: "def search_matrix(matrix: list[list[int]], target: int) -> bool:"
test_cases:
visible:
- input: { matrix: [[1, 3, 5, 7], [10, 11, 16, 20], [23, 30, 34, 60]], target: 3 }
expected: true
- input: { matrix: [[1, 3, 5, 7], [10, 11, 16, 20], [23, 30, 34, 60]], target: 13 }
expected: false
hidden:
- input: { matrix: [[1]], target: 1 }
expected: true
- input: { matrix: [[1]], target: 0 }
expected: false
- input: { matrix: [[1, 2, 3]], target: 2 }
expected: true
- input: { matrix: [[1], [2], [3]], target: 3 }
expected: true
- input: { matrix: [[1, 2], [3, 4]], target: 5 }
expected: false
description: |
You are given an `m x n` integer matrix `matrix` with the following two properties: