Linearly add non-overlapping prefix intervals, merge overlaps via min/max expansion, then add suffix.