Domanda di colloquio di MeridianLink

how to implement a linear time complexity heap?(is that possible?)