Lintcode: Rehashing - neverlandly - 博客园
The size of the hash table is not determinate at the very beginning. If the total size of keys is too large (e.g. size >= capacity / 10), we should double the size of the hash table and rehash every keys. Say you have a hash table looks like below:Read full article from Lintcode: Rehashing - neverlandly - 博客园
No comments:
Post a Comment