Skip to content

Commit 420d06b

Browse files
Formatting
1 parent 805188c commit 420d06b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/merge_intervals.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class OptimizedSolution:
4747
index of the last interval is greater than or equal to the start index of
4848
the current interval.
4949
"""
50+
5051
def merge(self, intervals: list[list[int]]) -> list[list[int]]:
5152
intervals.sort(key=lambda x: x[0])
5253
merged: list[list[int]] = []

tests/test_merge_intervals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
44
https://leetcode.com/problems/merge-intervals
55
"""
6+
67
from unittest import TestCase
78

8-
from src.merge_intervals import Solution, OptimizedSolution
9+
from src.merge_intervals import OptimizedSolution, Solution
910

1011

1112
class TestSolution(TestCase):

0 commit comments

Comments
 (0)