![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
设计
涛涛酱
北邮研究僧在读
展开
-
【LeetCode 295】Find Median from Data Stream
题目描述 Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value. For example, [2,3,4], the median is 3 [2,3], the median is (2 + 3) / 2 = 2.5 Design a原创 2020-05-18 13:38:29 · 90 阅读 · 0 评论 -
【LeetCode 155】Min Stack
题目描述 Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top() – Get the top element. getMin() – Retrieve the minimum elemen原创 2020-05-17 20:32:52 · 80 阅读 · 0 评论