Re: [闲聊] 每日leetcode

楼主: sixB (6B)   2024-12-17 17:45:59
2182.
照字典序重新排
不能重复超过rp次
放好多flag有点丑
时拉比真的好强
吗的slot币池
我一整个tts了
class Solution {
public:
string repeatLimitedString(string s, int rp) {
vector<int> ch(26, 0);
for(char& c: s){
ch[c-'a']++;
}
string res;
while(true){
bool flag = true, pass = false;
for(int i = 25; i >= 0; i
作者: sustainer123 (caster)   2024-12-17 17:52:00
这题好麻烦
作者: oin1104 (是oin的说)   2024-12-17 18:14:00
今天超麻烦

Links booklink

Contact Us: admin [ a t ] ucptt.com