Data Structures -- Java

Hash Table

2019-07-19  本文已影响0人  Leahlijuan

ArrayList is hashtable. For hash table, you can keep adding elements to it until the total element reach a number. And then, the size will be doubled. So the amortized insertion runtime is O(1).
Remember the hash code.

上一篇 下一篇

猜你喜欢

热点阅读