![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
好快的剑
这个作者很懒,什么都没留下…
展开
-
Leetcode组队学习任务
tstk0 设计一个支持 push,pop,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) – 将元素 x 推入栈中。 pop() – 删除栈顶的元素。 top() – 获取栈顶元素。 getMin() – 检索栈中的最小元素 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/min-stack class MinStack...转载 2019-08-04 16:49:00 · 98 阅读 · 0 评论 -
Leetcode组队学习任务
tstk1 给定一个只包括 ‘(’,’)’,’{’,’}’,’[’,’]’ 的字符串,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 来源:力扣(LeetCode) 链接:https://leetcode-cn.com/problems/valid-parentheses 著作权归领扣网络所有...转载 2019-08-05 19:16:35 · 52 阅读 · 0 评论