Created
February 9, 2019 07:48
-
-
Save graphoarty/441023897015ad548ed239e7974cf2e1 to your computer and use it in GitHub Desktop.
Hash Table 8
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
# @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