Solution: Count Substrings with Only One Distinct Letter
Let's solve the Count Substrings with Only One Distinct Letter problem using the Math and Geometry pattern.
We'll cover the following...
Statement
Given a string s, return the total number of substrings that contain only one distinct letter.
Constraints:
...