摘要: Problem: Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice i 阅读全文
posted @ 2016-06-01 19:18 liu_ty10 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Problem: 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 阅读全文
posted @ 2016-06-01 18:51 liu_ty10 阅读(134) 评论(0) 推荐(0) 编辑