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

@ -47,7 +47,7 @@ class ArrayHashMap {
int index = hashFunc(key);
Pair *pair = buckets[index];
if (pair == nullptr)
return nullptr;
return "";
return pair->val;
}