LeetCode 1180. Count Substrings with Only One Distinct Letter
Description https://leetcode.com/problems/count-substrings-with-only-one-distinct-letter/ Given a string s, return the number of substrings that have only one distinct letter. Example 1: Input: s = “aaaba” Output:…