feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 8544efb5bf
commit e0bf8cda01
134 changed files with 2075 additions and 0 deletions

View File

@@ -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.