<DS/>
DS_VISUALIZER
Foundations
OOP
Arrays
Linked List
Stacks
Queues
Trees
Graphs
Hashing
Strings
explore
Explore
chevron_left
home
chevron_right
Topics
chevron_right
Queues
chevron_right
Priority Queue
chevron_right
Heap Implementation
Priority Queue — Heap
Sift-up on insert, sift-down on extract — O(log n).
menu_book
Theory
fitness_center
Practice
7
← out (front)
in (rear) →
front
-1
index
rear
-1
index
tune