{"id":"max-heap-via-negation-idiom","text":"Solutions needing max-heap behavior negate values on insert and negate again on extract, since Python's `heapq` only provides a min-heap.","truth_value":"IN","source":"entries/2026/06/06/last-stone-weight-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"max-heap-via-negation-idiom","truth_value":"IN","reason":"premise"}]}}