gap-formula-excludes-endpoints

Status: IN

The expression `i - first_seen[c] - 1` counts characters strictly between positions `first_seen[c]` and `i`, excluding both boundary characters.

Source: entries/2026/06/06/largest-substring-between-two-equal-characters-solution.md

JSON