Reported in a candidate post, Aug 2021
Heaps vs BSTs and Priority Queues
Filed under Paytm
The question
Explain how a heap is stored, how unordered_map and map are implemented internally, whether BST can replace heaps, and what happens to heap properties when the top element is removed.
No write-up yet. Related questions below have one.
Related Paytm questions
Collected from public candidate posts and coding forums. Updated Nov 2026.