-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
lc/340/ #4446
lc/340/
#4446
-
lc/340/
多种编程语言实现 LeetCode、《剑指 Offer(第 2 版)》、《程序员面试金典(第 6 版)》题解
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
if (cnt.size() > k) {
if (--cnt[s[l]] == 0) {
cnt.erase(s[l]);
}
++l;
}
if (cnt.size() > k) 应该为 while
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment