Skip to content

Commit 1f9d929

Browse files
authored
Update HashMap.py
1 parent 04691ee commit 1f9d929

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

HashMap.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,12 @@ def retrieve(self, key):
7070
retrieval_collisions += 1
7171

7272
return
73+
74+
hash_map = HashMap(15)
75+
hash_map.assign("gabbro", "igneous")
76+
hash_map.assign("sandstone", "sedimentary")
77+
hash_map.assign("gneiss", "metamorphic")
78+
79+
print(hash_map.retrieve("gabbro"))
80+
print(hash_map.retrieve("sandstone"))
81+
print(hash_map.retrieve("gneiss"))

0 commit comments

Comments
 (0)