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

@@ -28,6 +28,12 @@ test_cases:
expected: 3
- input: { grid: [["1", "1"], ["1", "1"]] }
expected: 1
- input: { grid: [["1"], ["0"], ["1"], ["0"], ["1"]] }
expected: 3
- input: { grid: [["0", "0", "0"], ["0", "0", "0"], ["0", "0", "0"]] }
expected: 0
- input: { grid: [["1", "0", "1"], ["0", "1", "0"], ["1", "0", "1"]] }
expected: 5
description: |
Given an `m × n` 2D binary grid `grid` which represents a map of `'1'`s (land) and `'0'`s (water), return *the number of islands*.