Vidyalelo
C++ Programming · Q29

Standard Template Library (STL) in C++

Programming · C++ Programming · question 29

Q29

What is the time complexity of removing an element from a priority queue in C++ STL?

A.
O(log n)
Answer
B.
O(1)
C.
O(n)
D.
O(n log n)

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board