leetcode
395. Longest Substring with At Least K Repeating Characters
Solution code
Time complexity: O(n)
Space complexity: O(1)