摘要: 标题:Find Peak Element通过率:32.3%难度:中等A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a ... 阅读全文
posted @ 2015-02-10 11:33 pku_smile 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 标题:Search a 2D Matrix通过率31.3%难度中等Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integ... 阅读全文
posted @ 2015-02-10 11:20 pku_smile 阅读(197) 评论(0) 推荐(0) 编辑