← Back

Heaps Introduction

Complete binary tree maintaining heap property.

heappriority-queueUpdated 2025-09-01

Properties

  • Shape complete
  • Order parent ≥ or ≤ children

Representation

  • Array indexing 0/1-based