remove-element-write-never-exceeds-read

Status: IN

In `removeElement`, the write pointer `k` satisfies `k <= i` at all times, so the copy `nums[k] = nums[i]` never overwrites an unread element — this is the safety invariant that makes in-place compaction correct.

Source: entries/2026/06/06/remove-element-solution.md

JSON