endpoint-preservation-invariant

Status: IN

The missing-number-in-AP algorithm's correctness depends on the guarantee that the removed element is never the first or last element, so `arr[0]` and `arr[-1]` are the true endpoints of the original progression.

Source: entries/2026/06/06/missing-number-in-arithmetic-progression-solution.md

JSON