会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Geek Song
保持对科技的热情,不断积累自己的技术套装,力求能够快速从0到1构建整个项目,生命因技术而更加精彩!
博客园
首页
新随笔
联系
订阅
管理
2020年12月12日
【Leetcode】155: 最小栈(Python)
摘要: 题目描述: 设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。pop() —— 删除栈顶的元素。top() —— 获取栈顶元素。getMin() —— 检索栈中的最小元素。 示例: 输入:["MinStack","pu
阅读全文
posted @ 2020-12-12 12:21 Geeksongs
阅读(186)
评论(0)
推荐(0)
编辑
公告
Coded by Geeksongs on Linux
All rights reserved, no one is allowed to pirate or use the document for other purposes.