interview icon indicating copy to clipboard operation
interview copied to clipboard

HashMap 源码分析中对 17 的初始化阈值展示图解错误

Open zhangyaqi-org opened this issue 2 years ago • 0 comments

image

原文图解中是: 占位 1 在每次计算时向后传递 1 位,传递顺序为 10000、11000、11100、11110、11111

实际情况是: 占位 1 在计算时向后传递 2^n 位,正确传递顺序为 10000、11000、11110、11111

zhangyaqi-org avatar Sep 08 '21 07:09 zhangyaqi-org