Optimization of sorting heap

This commit is contained in:
Alexey Milovidov 2019-12-22 00:51:22 +03:00
parent 8ff361eda4
commit bc845ebce5

View File

@ -304,6 +304,7 @@ private:
void removeTop()
{
std::pop_heap(queue.begin(), queue.end());
queue.pop_back();
}
};