in this video, sir didn’t use vector, but when initialize priority queue he used vector .why
About vector program
In priority queue, the syntax is < data type, container of that data type, comparator>
therefore we need to send vector to store the integers in priority queue in a vector. i.e a space to hold the elements of priority queue.
http://www.cplusplus.com/reference/queue/priority_queue/
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.