Fundamentals/Labeling System
← PrevNext →
Given a string s and an integer limit, return the lexicographically largest rearrangement of s such that no character appears more than limit times consecutively.