mirror of
https://github.com/krahets/hello-algo.git
synced 2026-02-12 15:15:48 +08:00
Several bug fixes.
This commit is contained in:
@@ -17,7 +17,7 @@ class HashMapChaining {
|
||||
|
||||
public:
|
||||
/* 构造方法 */
|
||||
HashMapChaining() : size(0), capacity(4), loadThres(2.0 / 3), extendRatio(2) {
|
||||
HashMapChaining() : size(0), capacity(4), loadThres(2.0 / 3.0), extendRatio(2) {
|
||||
buckets.resize(capacity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user