+ 2

Why so many constructor calls in priority queue

Hi Please refer code below: https://code.sololearn.com/chFgUAA0r5TN I can understand constructor & destructor calls in terms of set. Why so many constructors called in case of priority queue?

3rd Mar 2022, 3:12 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Answer
0
Question is why after so many constructor calls, people prefer priority queue over set Set has also first element as highest... Why priority queue
5th Mar 2022, 5:18 PM
Ketan Lalcheta
Ketan Lalcheta - avatar