This commit is contained in:
krahets
2023-10-04 02:44:58 +08:00
parent 49ad0a6422
commit b3956c9e88
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -621,7 +621,7 @@ index = hash(key) % capacity
int index = hashFunc(key);
Pair *pair = buckets[index];
if (pair == nullptr)
return nullptr;
return "";
return pair->val;
}