摘要: class Solution: def removeKdigits(self, num: str, k: int) -> str: stack = [] for item in num: while stack and stack[-1]>item and k>0: k-=1 stack.pop(- 阅读全文
posted @ 2021-07-28 14:55 灰人 阅读(178) 评论(0) 推荐(0)