
算法设计与分析
文章平均质量分 69
雾语o-o
这个作者很懒,什么都没留下…
展开
-
【算法】The Skyline Problem
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 given the locations and height原创 2017-09-24 22:05:14 · 1007 阅读 · 0 评论 -
【算法】【Divide and conquer】Kth Largest Element in an Array
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.原创 2017-09-19 21:05:45 · 399 阅读 · 0 评论 -
【算法】【Divide and conquer】Different Ways to Add Parentheses
Difficulty:Medium Description Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. The valid operator原创 2017-09-10 11:17:35 · 238 阅读 · 0 评论 -
【算法】【Divide and conquer】Median of Two Sorted Arrays
Difficulty:Hard Description There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+原创 2017-09-17 18:14:45 · 498 阅读 · 0 评论