Several bug fixes.

This commit is contained in:
krahets
2023-10-04 02:30:31 +08:00
parent 0e3d2ce4bb
commit 4355f8d49f
7 changed files with 8 additions and 9 deletions

View File

@ -50,8 +50,8 @@ class HashMapChaining {
return pair->val;
}
}
// 若未找到 key 则返回 nullptr
return nullptr;
// 若未找到 key 则返回空字符串
return "";
}
/* 添加操作 */