{"id":"kth-largest-defensive-copy","text":"The `KthLargest` constructor copies `nums` via `nums[:]` before heapifying, so the caller's list is never modified by `heapify`'s in-place rearrangement.","truth_value":"IN","source":"entries/2026/06/06/kth-largest-element-in-a-stream-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"kth-largest-defensive-copy","truth_value":"IN","reason":"premise"}]}}