feat(content): hidden test cases
This commit is contained in:
@@ -25,6 +25,12 @@ test_cases:
|
||||
expected: [[1, 5], [6, 8]]
|
||||
- input: { intervals: [[3, 5], [12, 15]], newInterval: [6, 6] }
|
||||
expected: [[3, 5], [6, 6], [12, 15]]
|
||||
- input: { intervals: [[1, 5]], newInterval: [0, 0] }
|
||||
expected: [[0, 0], [1, 5]]
|
||||
- input: { intervals: [[1, 5]], newInterval: [0, 6] }
|
||||
expected: [[0, 6]]
|
||||
- input: { intervals: [[1, 2], [3, 4], [5, 6]], newInterval: [0, 7] }
|
||||
expected: [[0, 7]]
|
||||
|
||||
description: |
|
||||
You are given an array of non-overlapping intervals `intervals` where `intervals[i] = [start_i, end_i]` represent the start and the end of the i<sup>th</sup> interval and `intervals` is sorted in ascending order by `start_i`. You are also given an interval `newInterval = [start, end]` that represents the start and end of another interval.
|
||||
|
||||
Reference in New Issue
Block a user