LeetCode题解-----Majority Element II 摩尔投票法
摘要:
题目描述: Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) spa 阅读全文
posted @ 2016-03-14 20:09 姚灯灯! 阅读(1947) 评论(0) 推荐(0) 编辑