NeetCode #553LC-2251HardHeap / Priority Queue
← Back to All Problems

#553 · #2251 · Number of Flowers in Full Bloom(花期内花的数目)

📌 Problem Statement & Constraints

You are given flowers where flowers[i] = [start, end] is the blooming interval of the i-th flower, and people where people[i] is an arrival time. Return the number of flowers in bloom at each arrival. Constraints: 1 <= flowers.length, people.length <= 5 * 10^4, 1 <= start <= end <= 10^9, 1 <= people[i] <= 10^9.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!