Skip to content

Commit e69194d

Browse files
committed
feat: Hashmap补充 求余%和与运算&转换问题
1 parent c95accb commit e69194d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

6. 基础能力/集合/HashMap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ HashMap并不简单,涉及的知识遍及线程、Java内存模型、哈希计
2121
2222
- [HashMap深度分析](https://www.jianshu.com/p/8b372f3a195d)
2323
> 从面试的角度切入,可以作为细节点的补充。
24+
25+
## 细节
26+
27+
- [由HashMap哈希算法引出的求余%和与运算&转换问题](https://www.cnblogs.com/ysocean/p/9054804.html)
28+
> 从数学的角度论证为什么当 lenth = 2n 时,X % length = X & (length - 1)

0 commit comments

Comments
 (0)