This commit is contained in:
krahets
2023-02-08 04:17:26 +08:00
parent 7f4efa6d5e
commit 0407cc720c
347 changed files with 150 additions and 132904 deletions

View File

@ -37,9 +37,8 @@ public:
string get(int key) {
int index = hashFunc(key);
Entry* pair = bucket[index];
if (pair == nullptr) {
return "Not Found";
}
if (pair == nullptr)
return nullptr;
return pair->val;
}
@ -141,4 +140,4 @@ int main() {
}
return 0;
}
}