Problem 732 · Hard
Record +1 at each start and −1 at each end; the largest running total is the maximum overlap.
Open the interactive visualisation