Longest Substring with At Least K Repeating Characters
Medium · Arrays & Strings · about 25 minutes
Asked at Amazon, Microsoft, Google, ByteDance, Bloomberg.
s is lowercase. Find the longest substring in which each letter that appears does so k or more times, and return its length.