Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 9, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphoarty/65ffad3a8bd6c5359f616cd80e4c44dd to your computer and use it in GitHub Desktop.
Save graphoarty/65ffad3a8bd6c5359f616cd80e4c44dd to your computer and use it in GitHub Desktop.
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