Majority Element || leetcode
摘要:
编程之美上一样的题目。寻找发帖水王。利用分治的思想。int majorityElement(int* nums, int numsSize) { int candidate; int nTimes,i; for(i=0,nTimes=0;i<numsSize;i++){ ... 阅读全文
posted @ 2015-06-04 19:00 coderlt 阅读(166) 评论(0) 推荐(0)
浙公网安备 33010602011771号