Problem 395 · Medium

Longest Substring with At Least K Repeating Characters

Find the longest substring where every character appears at least k times.

Open the interactive visualisation