跳至主要內容

HashMap设计

HeChuangJun约 48 字小于 1 分钟

  • 散列函数:hashCode()+除留余数法
  • 冲突解决:链地址法
  • 扩容:节点重新hash获取位置
    myhashmap.png