Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Priority queue C++ time complexity

Binary Heap

insert()  remove()  peek()

Time Complexity

O(log n)  O(log n)   O(1)
 
PREVIOUS NEXT
Tagged: #Priority #queue #time #complexity
ADD COMMENT
Topic
Name
1+5 =