Search
⌘K

Leetcode 2251. Number of Flowers in Full Bloom

Given a list of closed time intervals for when each flower is in full bloom and query times for people arriving, return for each person how many intervals contain that time. With up to 5·10^4 intervals and large time values, this requires an efficient approach (e.g., sorting + binary search or sweep-line) rather than naive per-query scans.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.