{"id":"negated-max-heap-idiom","text":"Max-heap behavior is emulated by negating all values on insertion and negating again on extraction, since Python's `heapq` only provides a min-heap — a standard idiom used across heap-based solutions in this repo.","truth_value":"IN","source":"entries/2026/06/06/take-gifts-from-the-richest-pile-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"negated-max-heap-idiom","truth_value":"IN","reason":"premise"}]}}