Problem 1358 · Medium

Number of Substrings Containing All Three Characters

Count substrings containing at least one a one b and one c.

Open the interactive visualisation