Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Hash Table 4
# @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
You can’t perform that action at this time.