标签:
int find(int* ID, int n) { int nTimes = 0, i, candidate; for(i = 0; i < 0;i++) { if(nTimes == 0) { candidate = ID[i]; } else { if(candidate == ID[i]) { nTimes++; } else { nTimes--; } } } return candidate; }
标签:
原文地址:http://www.cnblogs.com/myblog-2015/p/5513021.html