For creating a heap of N numbers present in the vector, we need NlogN operations (as insertion of 1 element in heap takes logN time).
Priority Queue STL Quiz Q5
okay i understood the explanation. Thanks. BTW it was a tricky one 
For creating a heap of N numbers present in the vector, we need NlogN operations (as insertion of 1 element in heap takes logN time).
okay i understood the explanation. Thanks. BTW it was a tricky one 