What is a heap data structure?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain what a heap data structure is, how a min-heap differs from a max-heap, and what heaps are used for. It tests your grasp of the heap property, the array layout behind a binary heap, and the cost of insert, extract and build.