We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
假设原数组长度 capacity 为 16,扩容之后 new capacity 为 32: capacity : 00010000 new capacity : 00100000 对于一个 Key, 它的哈希值如果在第 5 位上为 0,那么取模得到的结果和之前一样; 如果为 1,那么得到的结果为原来的结果 +16。
没有看懂,有没有大佬详细讲解一下~