How is a heap typically implemented?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks how a binary heap is laid out and maintained in practice. Tests the complete-tree array layout, the parent and child index formulas, sift-up and sift-down with their costs, linear-time heap construction, and when other heap variants fit better.