<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
Array Implementation
Priority Queue — Array
Append O(1); dequeue scans for the max — O(n).
menu_book
Theory
fitness_center
Practice
6
← out (front)
in (rear) →
front
-1
index
rear
-1
index
tune