feat(content): hidden test cases
This commit is contained in:
@@ -28,6 +28,12 @@ test_cases:
|
||||
expected: 0
|
||||
- input: { height: [5, 4, 1, 2] }
|
||||
expected: 1
|
||||
- input: { height: [2, 0, 2] }
|
||||
expected: 2
|
||||
- input: { height: [4, 2, 3] }
|
||||
expected: 1
|
||||
- input: { height: [5, 2, 1, 2, 1, 5] }
|
||||
expected: 14
|
||||
|
||||
description: |
|
||||
Given `n` non-negative integers representing an elevation map where the width of each bar is `1`, compute how much water it can trap after raining.
|
||||
|
||||
Reference in New Issue
Block a user