mirror of
https://github.com/krahets/hello-algo.git
synced 2026-05-04 23:00:54 +08:00
Several bug fixes.
This commit is contained in:
@@ -28,7 +28,7 @@ func newHashMapChaining() *hashMapChaining {
|
||||
return &hashMapChaining{
|
||||
size: 0,
|
||||
capacity: 4,
|
||||
loadThres: 2 / 3.0,
|
||||
loadThres: 2.0 / 3.0,
|
||||
extendRatio: 2,
|
||||
buckets: buckets,
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ func newHashMapOpenAddressing() *hashMapOpenAddressing {
|
||||
return &hashMapOpenAddressing{
|
||||
size: 0,
|
||||
capacity: 4,
|
||||
loadThres: 2 / 3.0,
|
||||
loadThres: 2.0 / 3.0,
|
||||
extendRatio: 2,
|
||||
buckets: buckets,
|
||||
removed: pair{
|
||||
|
||||
Reference in New Issue
Block a user