LeetCode Hot 100 · 中等 · 栈、设计
设计一个支持 push、pop、top 操作,并能在常数时间内检索到最小元素的栈。实现 MinStack 类:
在 RagCodes 上用 Python / C++ / Java 在线编写并提交,核心代码模式与 ACM 模式均可评测。