CodingModerate
Lexicographically largest string with K consecutive constraint
Filed under Arista Networks
The question
Rearrange/erase letters in a string to find the lexicographically largest string such that no more than K consecutive letters are the same.
No write-up yet. Related questions below have one.
Related Arista Networks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.