Top Frequency Substring
HubSpot interview questions · Easy · Coding round · 6 tests
Tally every overlapping window of length k and return the most common one, using lexicographic order to break ties.
The full question, tests and reference solution are available with a plan that includes HubSpot.
Run your code with Ctrl+Enter to see results.