What is the time complexity of heap operations (insertion, deletion, peek) in a binary heap?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks for the time complexity of insertion, deletion and peek in a binary heap and the reason behind each bound. Tests understanding of complete binary tree height, sift-up and sift-down, and the array layout behind priority queues.