Skip to content

Commit 31bab47

Browse files
authored
Update HashTable.html
1 parent bf6e98f commit 31bab47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/17_hashmap/HashTable.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
hash+=key.charCodeAt(i);
2323
}
2424
//为了得到比较小的数值,我们会用hash和任意数除余
25-
return hash%30;
25+
return hash%37;
2626
}
2727
//向散列表增加一个新的项
2828
put(key,value){

0 commit comments

Comments
 (0)