BlackRockSoftware EngineerSoftware EngineerQuestion #101

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 the detailed step-by-step solution to this BlackRock interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 104+ BlackRock Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call