有关cmu15 / 445课程项目#2哈希表的实施问题

问题描述

我正在做cmu15-445课程中的project#2哈希表,我有一个问题。

Your hash table must support both unique and non-unique keys. Duplicate values for the same key are not allowed. This means that (key_0,value_0) and (key_0,value_1) can exist in the same hash table,but not (key_0,value_0). The Insert method only returns false if it tries to insert an existing key-value pair.

这是项目要求的描述,我的哈希表需要支持相同的键。 我的问题是,如何查询,我需要遍历所有存储桶以找到具有相同键的所有值,所以我的哈希表毫无意义,对吧?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)