Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 348 Bytes

217.md

File metadata and controls

17 lines (17 loc) · 348 Bytes

#217. Contains Duplicate 题目链接

bool containsDuplicate(int* nums, int numsSize) {
    int i;
    int j;
    for(i=0; i<numsSize-1;i++)
    {
        for(j=i+1;j<numsSize;j++)
        {
            if(nums[i]-nums[j]==0)
            return true;
        }
    }
    return false;
}