Blackrock
Interview Question
Software Engineer Interview
Blackrock
Write a function that takes in a string and an integer n. The integer determines the maximum number of allowed repeated consecutive letters. For example, ('aab', 1) should return 'ab'. ('aaabba', 2) should return 'aabba'.
Unlock the Full Solution
Enter your email to get instant access to the complete solution, explanation, and similar practice problems.

