Skip to content

Commit

Permalink
Update HashMap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthNixx authored Aug 23, 2019
1 parent 04691ee commit 1f9d929
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions HashMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,12 @@ def retrieve(self, key):
retrieval_collisions += 1

return

hash_map = HashMap(15)
hash_map.assign("gabbro", "igneous")
hash_map.assign("sandstone", "sedimentary")
hash_map.assign("gneiss", "metamorphic")

print(hash_map.retrieve("gabbro"))
print(hash_map.retrieve("sandstone"))
print(hash_map.retrieve("gneiss"))

0 comments on commit 1f9d929

Please sign in to comment.