Created
February 9, 2019 07:46
-
-
Save graphoarty/65ffad3a8bd6c5359f616cd80e4c44dd to your computer and use it in GitHub Desktop.
Hash Table 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @param {number} hashTableSize | |
def __init__(self, hashTableSize = defaultHashTableSize): | |
# Should probably be named HashTableEntry. You get the point. | |
self.buckets = [LinkedList() for x in range(0, hashTableSize)] | |
# A quick lookup for has() and getKeys(). | |
self.keys = {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment