kth-largest-defensive-copy

Status: IN

The `KthLargest` constructor copies `nums` via `nums[:]` before heapifying, so the caller's list is never modified by `heapify`'s in-place rearrangement.

Source: entries/2026/06/06/kth-largest-element-in-a-stream-solution.md

JSON