堆
景行cmy
这个作者很懒,什么都没留下…
展开
-
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 ...原创 2019-07-28 10:56:00 · 82 阅读 · 0 评论 -
leetcode 871. Minimum Number of Refueling Stops
A car travels from a starting position to a destination which istargetmiles east of the starting position.Along the way, there are gas stations. Eachstation[i]represents a gas station that iss...原创 2019-08-28 11:53:22 · 126 阅读 · 0 评论 -
leetcode 502. IPO
Suppose LeetCode will start its IPO soon. In order to sell a good price of its shares to Venture Capital, LeetCode would like to work on some projects to increase its capital before the IPO. Since it ...原创 2019-09-03 10:39:01 · 170 阅读 · 0 评论 -
leetcode 895. Maximum Frequency Stack
Implement FreqStack, a class which simulates the operation of a stack-like data structure.FreqStackhas two functions:push(int x), which pushes an integer x onto the stack. pop(), which removes a...原创 2019-09-16 11:12:52 · 103 阅读 · 0 评论