Can't set fulfil purpose of priority queue ?
Hi Please refer below code : My question is on the need of priority queue. Isn't set enough ? It also allows to iterate without removing data from container unlike priority queue. So what's the use case where only priority queue is best compared to set ? https://code.sololearn.com/c0UmZr38D0Qi/?ref=app