feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

@@ -23,6 +23,14 @@ test_cases:
expected: [[0, 0], [0, 1], [1, 0], [1, 1]]
- input: { heights: [[1, 2], [4, 3]] }
expected: [[0, 1], [1, 0], [1, 1]]
- input: { heights: [[1, 2, 3], [4, 5, 6], [7, 8, 9]] }
expected: [[0, 2], [1, 2], [2, 0], [2, 1], [2, 2]]
- input: { heights: [[10, 10, 10], [10, 1, 10], [10, 10, 10]] }
expected: [[0, 0], [0, 1], [0, 2], [1, 0], [1, 2], [2, 0], [2, 1], [2, 2]]
- input: { heights: [[3, 3, 3, 3, 3]] }
expected: [[0, 0], [0, 1], [0, 2], [0, 3], [0, 4]]
- input: { heights: [[3], [3], [3], [3], [3]] }
expected: [[0, 0], [1, 0], [2, 0], [3, 0], [4, 0]]
description: |
There is an `m x n` rectangular island that borders both the **Pacific Ocean** and **Atlantic Ocean**. The **Pacific Ocean** touches the island's left and top edges, and the **Atlantic Ocean** touches the island's right and bottom edges.