
[LeetCode] 2182. Construct String With Repeat Limit (Python)
·
알고리즘/LeetCode
난이도: Medium 문제 설명You are given a string s and an integer repeatLimit. Construct a new string repeatLimitedString using the characters of s such that no letter appears more than repeatLimit times in a row. You do not have to use all characters from s. Return the lexicographically largest repeatLimitedString possible. A string a is lexicographically larger than a string b if in the first position ..