0316. 去除重复字母 #116
Replies: 1 comment
-
and stack[-1] in letter_counts 这个条件是不是有点多余 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
0316. 去除重复字母
标签:栈、贪心、字符串、单调栈; 难度:中等; 题目链接 0316. 去除重复字母 - 力扣 (https://leetcode.cn/problems/remove-duplicate-letters/); 题目大意 描述:给定一个字符串 s。 要求:去除字符串中重复的字母,使得每个字母只出现一次。需要保证 「返回结果的字典序最小(要求不能打乱其他字...
https://algo.itcharge.cn/Solutions/0300-0399/remove-duplicate-letters/
Beta Was this translation helpful? Give feedback.
All reactions