LeetCode 480. Sliding Window Median(java)

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 tw...

2018-02-09 11:44:58

阅读数:37

评论数:0

LeetCode 295. Find Median from Data Stream(java)

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 tw...

2018-02-03 13:48:34

阅读数:24

评论数:0

LeetCode 218. The Skyline Problem(java)

A city’s skyline is the outer contour of the silhouette formed by all the buildings in that city when viewed from a distance. Now suppose you are giv...

2018-01-27 08:41:31

阅读数:72

评论数:0

LeetCode 23. Merge k Sorted Lists(java)

Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity.解法一:用heap来做,先把k个list的第一个元素放进heap,每次poll出一个后,放进poll出...

2018-01-20 08:43:25

阅读数:151

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭