We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805188c commit 420d06bCopy full SHA for 420d06b
src/merge_intervals.py
@@ -47,6 +47,7 @@ class OptimizedSolution:
47
index of the last interval is greater than or equal to the start index of
48
the current interval.
49
"""
50
+
51
def merge(self, intervals: list[list[int]]) -> list[list[int]]:
52
intervals.sort(key=lambda x: x[0])
53
merged: list[list[int]] = []
tests/test_merge_intervals.py
@@ -3,9 +3,10 @@
3
4
https://leetcode.com/problems/merge-intervals
5
6
7
from unittest import TestCase
8
-from src.merge_intervals import Solution, OptimizedSolution
9
+from src.merge_intervals import OptimizedSolution, Solution
10
11
12
class TestSolution(TestCase):
0 commit comments