Problem 1624 · Easy

Largest Substring Between Two Equal Characters

Find the longest gap between two matching letters, excluding the endpoints themselves. The visual brackets each repeated letter pair and shows the length between them.

Open the interactive visualisation