Optimization lessons
Node 22.08.0
Loading editor…
Test casesRun to compare output
Inputintervals = [[1,3],[2,6],[8,10],[15,18]]
Expected[[1,6],[8,10],[15,18]]
Output—
More practice
Same technique, different problems. Try them without the walkthrough.