feat(content): hidden test cases
This commit is contained in:
@@ -26,6 +26,12 @@ test_cases:
|
||||
expected: [[0, 0], [1, 4]]
|
||||
- input: { intervals: [[1, 4], [2, 3]] }
|
||||
expected: [[1, 4]]
|
||||
- input: { intervals: [[1, 3], [4, 6], [7, 9]] }
|
||||
expected: [[1, 3], [4, 6], [7, 9]]
|
||||
- input: { intervals: [[1, 10], [2, 3], [4, 5], [6, 7]] }
|
||||
expected: [[1, 10]]
|
||||
- input: { intervals: [[2, 3], [4, 5], [6, 7], [8, 9], [1, 10]] }
|
||||
expected: [[1, 10]]
|
||||
|
||||
description: |
|
||||
Given an array of `intervals` where `intervals[i] = [start_i, end_i]`, merge all overlapping intervals, and return *an array of the non-overlapping intervals that cover all the intervals in the input*.
|
||||
|
||||
Reference in New Issue
Block a user