Heap (Priority Queue)
49 problems
- 218.The Skyline ProblemHard
- 239.Sliding Window MaximumHard
- 264.Ugly Number IIMedium
- 407.Trapping Rain Water IIHard
- 502.IPOUnknown
- 632.Smallest Range Covering Elements from K ListsHard
- 658.Find K Closest ElementsMedium
- 703.Kth Largest Element in a StreamEasy
- 778.Swim in Rising WaterHard
- 857.Minimum Cost to Hire K WorkersHard
- 912.Sort an ArrayMedium
- 973.K Closest Points to OriginMedium
- 1353.Maximum Number of Events That Can Be AttendedMedium
- 1368.Minimum Cost to Make at Least One Valid Path in a GridHard
- 1405.Longest Happy StringUnknown
- 1438.Longest Continuous Subarray With Absolute Diff Less Than or Equal to LimitMedium
- 1488.Avoid Flood in The CityUnknown
- 1514.Path with Maximum ProbabilityMedium
- 1751.Maximum Number of Events That Can Be Attended IIUnknown
- 1792.Maximum Average Pass RatioMedium
- 1912.Design Movie Rental SystemUnknown
- 1942.The Number of the Smallest Unoccupied ChairUnknown
- 2054.Two Best Non-Overlapping EventsUnknown
- 2071.Maximum Number of Tasks You Can AssignUnknown
- 2099.Find Subsequence of Length K With the Largest SumEasy
- 2163.Minimum Difference in Sums After Removal of ElementsUnknown
- 2182.Construct String With Repeat LimitMedium
- 2285.Maximum Total Importance of RoadsHard
- 2290.Minimum Obstacle Removal to Reach CornerHard
- 2353.Design a Food Rating SystemMedium
- 2402.Meeting Rooms IIIHard
- 2406.Divide Intervals Into Minimum Number of GroupsMedium
- 2528.Maximize the Minimum Powered CityHard
- 2530.Maximal Score After Applying K OperationsMedium
- 2558.Take Gifts From the Richest PileEasy
- 2577.Minimum Time to Visit a Cell In a GridHard
- 2583.Kth Largest Sum in a Binary TreeMedium
- 2593.Find Score of an Array After Marking All ElementsMedium
- 2940.Find Building Where Alice and Bob Can MeetUnknown
- 3066.Minimum Operations to Exceed Threshold Value IIMedium
- 3296.Minimum Number of Seconds to Make Mountain Height ZeroMedium
- 3318.Find X-Sum of All K-Long Subarrays IEasy
- 3321.Find X-Sum of All K-Long Subarrays IIUnknown
- 3341.Find Minimum Time to Reach Last Room IMedium
- 3342.Find Minimum Time to Reach Last Room IIMedium
- 3362.Zero Array Transformation IIIUnknown
- 3397.Maximum Number of Distinct Elements After OperationsUnknown
- 3408.Design Task ManagerUnknown
- 3494.Find the Minimum Amount of Time to Brew PotionsUnknown