摘要:
Given a sorted array, two integers k and x, find the k closest elements to x in the array. The result should also be sorted in ascending order. If the 阅读全文
posted @ 2018-12-04 09:25
fatttcat
阅读(177)
评论(0)
推荐(0)
摘要:
You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality c 阅读全文
posted @ 2018-12-04 05:13
fatttcat
阅读(92)
评论(0)
推荐(0)
摘要:
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). F 阅读全文
posted @ 2018-12-04 04:59
fatttcat
阅读(112)
评论(0)
推荐(0)
摘要:
Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endp 阅读全文
posted @ 2018-12-04 02:57
fatttcat
阅读(110)
评论(0)
推荐(0)
浙公网安备 33010602011771号