Blackrock
Interview Question
Software Engineer Interview
Blackrock
Write a function that takes a string and an integer as inputs. The integer specifies the maximum number of consecutive repeated letters to allow in the returned string. For example: ('aab', 1) -> 'ab'; ('aaabba', 2) -> 'aabba'.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

