Skip to content

Commit 56ea71b

Browse files
committed
Fix trailing whitespaces
1 parent 75aac0a commit 56ea71b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/thealgorithms/greedyalgorithms/MergeIntervals.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* Problem Statement:
99
* Given an array of intervals where intervals[i] = [starti, endi].
10-
*
10+
*
1111
* Merge all overlapping intervals and return an array of the non-overlapping
1212
* intervals
1313
* that cover all the intervals in the input.
@@ -22,7 +22,7 @@ private MergeIntervals() {
2222

2323
/**
2424
* Merges overlapping intervals from the given array of intervals.
25-
*
25+
*
2626
* The method sorts the intervals by their start time, then iterates through the
2727
* sorted intervals
2828
* and merges overlapping intervals. If an interval overlaps with the last
@@ -33,7 +33,7 @@ private MergeIntervals() {
3333
* @param intervals A 2D array representing intervals where each element is an
3434
* interval [starti, endi].
3535
* @return A 2D array of merged intervals where no intervals overlap.
36-
*
36+
*
3737
* Example:
3838
* Input: {{1, 3}, {2, 6}, {8, 10}, {15, 18}}
3939
* Output: {{1, 6}, {8, 10}, {15, 18}}

0 commit comments

Comments
 (0)