We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ade2cc1 commit a5cd393Copy full SHA for a5cd393
1 file changed
articles/non-overlapping-intervals.md
@@ -1209,7 +1209,7 @@ A greedy strategy works well here. After sorting intervals by their **start time
1209
Why this works:
1210
1211
- When two intervals overlap, keeping the one with the **smaller end time** leaves more room for future intervals
1212
-- Removing the interval with the larger end is always a worse choice, because it blocks more upcoming intervals
+- Removing the interval with the larger end is always the better choice, because keeping it would block more upcoming intervals
1213
1214
So instead of choosing which interval to keep globally, we make a **local greedy decision** whenever an overlap happens.
1215
0 commit comments