Coding Interview Questions

The sort-then-sweep trick behind merge intervals

6 min read How sorting by start time turns merge intervals, insert interval, and meeting rooms into one linear sweep. Read article