is it necessary to do operator overloading in priority queue to make our own comparator??
Operator overloading in comparator
yes it is necessary to do so, without overloading, it won’t work
We have to remember syntax also for that??
yes you will have to, but don’t worry, do it 3-4 times, and you will remember it automatically