feat(content): hidden test cases

This commit is contained in:
2025-08-06 23:21:42 +01:00
parent 89b5dd1457
commit 6bed0a6787
134 changed files with 2075 additions and 0 deletions

View File

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