Heap (Priority Queue) Problems

Master heap (priority queue) problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 131 problems in this category.

Total Problems: 131
Easy: 13
Medium: 73
Hard: 45
Showing 50 of 131 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
347

Top K Frequent Elements

Medium
1014

K Closest Points to Origin

Medium
23

Merge k Sorted Lists

Hard
803

Cheapest Flights Within K Stops

Medium
378

Kth Smallest Element in a Sorted Matrix

Medium
295

Find Median from Data Stream

Hard
630

Course Schedule III

Hard
215

Kth Largest Element in an Array

Medium
239

Sliding Window Maximum

Hard
621

Task Scheduler

Medium
2479

Meeting Rooms III

Hard
355

Design Twitter

Medium
658

Find K Closest Elements

Medium
948

Sort an Array

Medium
794

Swim in Rising Water

Hard
420

Strong Password Checker

Hard
3863

Power Grid Maintenance

Medium
1127

Last Stone Weight

Easy
744

Network Delay Time

Medium
885

Exam Room

Medium
451

Sort Characters By Frequency

Medium
1814

Jump Game VI

Medium
659

Split Array into Consecutive Subsequences

Medium
2868

Continuous Subarrays

Medium
218

The Skyline Problem

Hard
407

Trapping Rain Water II

Hard
1478

Maximum Number of Events That Can Be Attended

Medium
789

Kth Largest Element in a Stream

Easy
2161

Stock Price Fluctuation

Medium
1184

Car Pooling

Medium
373

Find K Pairs with Smallest Sums

Medium
1397

Search Suggestions System

Medium
2113

Find the Kth Largest Integer in the Array

Medium
2204

Find Subsequence of Length K With the Largest Sum

Easy
1304

Longest Happy String

Medium
480

Sliding Window Median

Hard
2250

K Highest Ranked Items Within a Price Range

Medium
2488

Divide Intervals Into Minimum Number of Groups

Medium
3627

Find Minimum Time to Reach Last Room I

Medium
1753

Path With Minimum Effort

Medium
892

Shortest Subarray with Sum at Least K

Hard
2725

Mice and Cheese

Medium
2449

Maximum Number of Robots Within Budget

Hard
506

Relative Ranks

Easy
1902

Car Fleet II

Hard
1549

Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

Medium
1622

Max Value of Equation

Hard
3496

Minimum Number of Seconds to Make Mountain Height Zero

Medium
2429

Design a Food Rating System

Medium
3181

Find Building Where Alice and Bob Can Meet

Hard
Loading more problems...

Heap (Priority Queue) LeetCode Problems List

Related LeetCode Topics