Problem 2251 · Hard

Number of Flowers in Full Bloom

Sort the bloom starts and ends separately; a flower is in bloom at time t when it started by t and has not yet ended before t.

Open the interactive visualisation