Problem 2743 · Medium

Count Substrings Without Repeating Character

Slide a window whose right end moves across the string; each right end adds every valid start between the window left edge and itself.

Open the interactive visualisation