Solution: Number of Substrings Containing All Three Characters
Let's solve the Number of Substrings Containing All Three Characters problem using the Sliding Window pattern.
We'll cover the following...
Statement
Given a string s that consists only of the characters 'a', 'b', and 'c', return the number of substrings that contain at least one occurrence of each of the three characters.
Constraints:
s.length...