feat(content): hidden test cases
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user