
hash
文章平均质量分 83
GKHack
这个作者很懒,什么都没留下…
展开
-
POJ3349 Snowflake Snow Snowflakes(hash)
Snowflake Snow Snowflakes Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 35715 Accepted: 9399 Description You may have heard that no two snowflakes ar原创 2015-11-17 11:20:44 · 896 阅读 · 0 评论 -
Codeforces Round #335 (Div. 2) 606C Sorting Railway Cars(hash)
C. Sorting Railway Cars time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output An infinitely long railway has a tr原创 2015-12-11 17:05:01 · 1157 阅读 · 0 评论 -
散列表ADT_HashTable
M为除留余数法的模数, ht是指向动态生成的一维数组指针, empty是标志数组的指针. 成员函数Find()在散列表中搜索与x关键字相同的元素. 若表中存在与x关键字值相同的元素, 则将其复制给x, pos指示该位置, 函数返回 Success. 若表已满, 函数返回Overflow. 若表未满, 函数返回NotPresent, pos指示首次遇到的空值位置. 实现代码: #includ原创 2015-12-01 01:03:54 · 3533 阅读 · 0 评论