posted 15 years ago
HOw is the Priority queue calling the comparator in this case?
I am not able to get at what time does the comparator sort the data inside the priority queue? Does it do at Queue creation? or on calling Poll()?
Please explain...I could not find the way even after debugging...!