mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-12 11:50:58 +00:00
build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user