stl priority queue based on lower value first
Posted
by russell
on Stack Overflow
See other posts from Stack Overflow
or by russell
Published on 2010-05-17T17:44:54Z
Indexed on
2010/05/17
17:50 UTC
Read the original article
Hit count: 263
I have a problem with stl priority queue.I want to have the priority queue in the increasing order,which is decreasing by default.Is there any way to do this in priority queue.
And what is the complexity of building stl priority queue.If i use quick sort in an array which takes O(nlgn) is its complexity is similar to using priority queue???
Plz someone ans.Advanced thanx.
© Stack Overflow or respective owner