priority-queue

Tag

Cards List
#priority-queue

const_cast: A Necessary Evil

Lobsters Hottest · yesterday Cached

The article explains why const_cast is sometimes necessary in C++, specifically for moving objects out of a std::priority_queue, and how to do it safely.

0 favorites 0 likes
#priority-queue

A constant-space linear-time algorithm for deleting all but the 10 most recent files in a directory

The Old New Thing (Raymond Chen) · 2026-05-14 Cached

This article describes a constant-space linear-time algorithm using a min-priority queue to delete all but the 10 most recent files in a directory, avoiding the O(n) space of sorting all entries.

0 favorites 0 likes
← Back to home

Submit Feedback