- 博客(1)
- 收藏
- 关注
原创 哈希算法
#define HASHSIZE 10 // 定义散列表长度 要求m >= n #define NULLKEY -32768 typedef struct { int *elem; // 数据元素存储地址,动态分配数组 int count; // 当前数据元素个数 }HashTable; int m = 0; int Init(HashTable *H) { int i; m = HASHSIZE; H->elem = (int *)malloc(m * sizeof(int)); //分配
2020-09-13 21:30:32
241
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人