in the comparator class defined here why was it necessary to overload the operator? Couldn’t the comparison be done without overloading of() here?
Doubt in the code of this video
@S19LPPP0015 hey ,we just overload that for our convenience so that we can use () this with object of our priority queue,and compare them easily ,yes we can done this without this overloading.