+ 1

Hash tables

Implement a phone book using hash tables. How to handle the case where a person can have multiple phone numbers.

8th Dec 2018, 2:06 PM
louza
2 Antworten
+ 4
Use a list-valued dictionary.
8th Dec 2018, 2:21 PM
Kishalaya Saha
Kishalaya Saha - avatar
0
You can store a list as the value {'someone':[2819,8313,69381]}
8th Dec 2018, 2:24 PM
Taste
Taste - avatar