Merge branch 'krahets:master' into master

This commit is contained in:
马赛克
2022-12-16 09:18:48 +08:00
committed by GitHub
10 changed files with 280 additions and 15 deletions

View File

@ -52,7 +52,7 @@ class ArrayHashMap {
/* 删除操作 */
public void remove(int key) {
int index = hashFunc(key);
// 置为空字符,代表删除
// 置为 null ,代表删除
bucket.set(index, null);
}