Cheng Lei
Results
1
issues of
Cheng Lei
大佬,你这里哈希表的二次探测函数,会出现无限循环的情况。 ```python def _find_slot_for_insert(self, key): index = self._hash(key) _len = len(self._table) while not self._slot_can_insert(index): # 直到找到一个可以用的槽 index = (index * 5 + 1) % _len return index def _slot_can_insert(self, index):...