Leetcode 2182. Construct String With Repeat Limit
Posted on Mon 16 December 2024 in Leetcode • Tagged with priority-queue
Question Link : https://leetcode.com/problems/construct-string-with-repeat-limit/
Difficulty: Medium
Premium: False
Question
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 …
Continue reading