Top 50
Topic roadmap
Updated weekly · Last refresh Sep 13

Top 50 Heap Interview Questions

The most frequently asked Heap questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~21htotal time
219companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
Hash TablesStart here. 17 questions · ~425 min
Design an LRU CacheEasy
Practice
Recently asked

Implement an LRU cache in O(1) average time using a hash table and doubly linked list.

Hash TablesQueueLinked ListsAllianzICFInsulet
Top K Frequent ElementsEasy
Practice
Recently asked

Find the k most frequent elements in an array using counting and a heap or bucket strategy.

Hash Tablestop kHeapAllegis GroupDelta Electronics AmericasAccenture
Thread-Safe LRU Cache with TTLHard
Practice
Recently asked

Implement an O(1) average-time LRU cache with per-entry expiration using a hash map, doubly linked list, and thread-safe access.

Hash TablesLinked ListsHeapDeepgramNetDocumentsInflection
Top Error Codes from LogsEasy
Practice

Parse log lines, count error codes with a hash table, and return the 10 most frequent using sorting or a heap.

Hash TablesStringsHeapSquarespaceTencentBaseten
K Most Frequent ElementsEasy
Practice
Recently asked

Return the k most frequent array values using frequency counting and a bounded min-heap.

Hash TablesArraysHeapInc.WalmartTech(x)
More Hash Tables questions with a free account
2
Arrays12 questions · ~300 min
Kth Largest ElementEasy
Practice
Recently asked

Find the kth largest value in an unsorted array using a selection algorithm or heap.

ArraysSortingHeapOneAmazon22nd Century Technologies
Sliding Window MaximumMedium
Practice
Recently asked

Compute maximum values for every fixed-size telemetry window using a monotonic deque in O(n) time.

ArraysSliding WindowHeapHewlett Packard Enterprise DevelopmentABCABC Family
More Arrays questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
3
Linked Lists3 questions · ~75 min
Merge K Sorted Linked ListsMedium
Practice
Recently asked

Problem At Meta, imagine multiple pre-sorted event streams need to be combined into one ordered feed. Given k sorted singly linked lists, merge them into o...

Linked ListsSortingHeapMetaGoogle
More Linked Lists questions with a free account
4
Queue5 questions · ~125 min
More Queue questions with a free account
5
More topics13 questions · ~325 min
More questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.