Monthly Archives: September 2016

Customizing Priority Queues in C++

A nifty feature of priority queues in C++ is that you can implement a max heap or a min heap by simply changing the compare type. For most purposes, std::less and std::greater can do the job, provided that you use built-in … Continue reading

Posted in algorithms, data structures, software | Leave a comment