2015年6月4日

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 阅读(159) 评论(0) 推荐(0) 编辑

导航