special-array-boundary-guard

Status: IN

The `x == n` check in `specialArray` prevents an index-out-of-bounds access on `nums[x]` when `x` equals the array length; removing it would crash on arrays where all elements qualify.

Source: entries/2026/06/06/special-array-with-x-elements-greater-than-or-equal-x-solution.md

JSON