Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 185 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 185 Bytes

brutal force

Comparing each of the interval with the new interval. When there is intersection we can update the new interval to the intersected interval.

time: O(n)
space: O(1)