算法复习_线性时间求解Majority Vote Algorithm问题
摘要:
题目来源于Leecode上的Majority Element问题 Majority Element:在一个序列中出现了至少n/2的下界次 使用排序算法取中位数则需要Nlogn http://www.cs.utexas.edu/~moore/best-ideas/mjrty/ 介绍了一种线性时间内的算 阅读全文
posted @ 2017-11-12 20:41 mdumpling 阅读(222) 评论(0) 推荐(0)
浙公网安备 33010602011771号