摘要:
https://leetcode.com/submissions/detail/106698735/ 要求O(logN)的时间复杂度,想到用二分查找。如果中间元素大于其相邻后续元素,则中间元素左侧(包含该中间元素)必包含一个局部最大值。如果中间元素小于其相邻后续元素,则中间元素右侧必包含一个局部最大 阅读全文
posted @ 2017-06-20 22:15
apanda009
阅读(125)
评论(0)
推荐(0)
摘要:
http://www.cnblogs.com/EdwardLiu/p/6197086.html https://leetcode.com/problems/heaters/#/description Binary Search My solution: Be careful in my binary 阅读全文
posted @ 2017-06-20 21:09
apanda009
阅读(178)
评论(0)
推荐(0)

浙公网安备 33010602011771号