摘要: 描述 Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The funct 阅读全文
posted @ 2017-05-16 18:16 larryking 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 描述 Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that 阅读全文
posted @ 2017-05-16 18:14 larryking 阅读(113) 评论(0) 推荐(0) 编辑