C语言 | Leetcode C语言题解之第217题存在重复元素
题目: 题解:
struct hashTable {int key;UT_hash_handle hh;
};bool containsDuplicate(int* nums, int numsSize) {struct hashTable* set NULL;for (int i 0; i < numsSize; i) {struct hashTable* tmp;HASH_FIND_INT(set, nums i, tmp);if (tm…
数据结构与算法
2024/7/7 7:42:03