【leetcode】重复 N 次的元素

int repeatedNTimes(int* A, int ASize){
    int hash[10001] = {0};
    for(int i=0; i<ASize; i++)
    {
        if(++hash[A[i]] >=2) return A[i];
    }
    return 0;
}
原文地址:https://www.cnblogs.com/ganxiang/p/13676573.html