Ezvor

3773. Maximum Number of Equal Length Runs

MediumHash Table Preparing judge… LeetCode
Hash TableStringCounting

Hints

Hint 1
Split the string when adjacent characters are not equal, and use those to make the runs
Hint 2
Use a hashmap to group runs of the same length