Skip to content

Instantly share code, notes, and snippets.

@graphoarty
Created February 9, 2019 07:48
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/441023897015ad548ed239e7974cf2e1 to your computer and use it in GitHub Desktop.
Save graphoarty/441023897015ad548ed239e7974cf2e1 to your computer and use it in GitHub Desktop.
Hash Table 8
# @params {string} key
# @returns {boolean}
def has(self, key):
if key in self.keys.keys():
return True
else:
return False
# @returns {string[]}
def getKeys(self):
return list(self.keys.keys())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment