C++ how to find index of element in priority queue
Answers
Answered by
0
Answer:
priority_queue::top() in C++ STL. top() function is used to reference the top(or the largest) element of the priority queue. Syntax : Errors and Exceptions. Application : Given a priority queue of integers, find the number of prime and non prime numbers. Algorithm. Enter the size of the priority queue into a variable.
Answered by
0
this is ur answer hope it helps
Attachments:
Similar questions