摘要: 题目 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 @ 2018-10-09 13:57 shinjia 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 题目 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 @ 2018-10-09 09:21 shinjia 阅读(110) 评论(0) 推荐(0) 编辑