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