Available question text
Given a multiset of lowercase letters and an integer repeatLimit, build the lexicographically largest string (you may omit characters) such that no letter appears more than repeatLimit times consecutively. The core challenge is a greedy ordering: repeatedly use the largest available letter up to the limit and insert the next-largest characters as needed to break runs.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2182. Construct String With Repeat Limit
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source