B***r 发帖数: 79 | 1 You use hashtable to find phone given name, what kind of data structure
would you use to find “phone by name” and “name by phone”?
I can create a reverse map. But there should be a better solution.
Thx! | G****o 发帖数: 155 | 2 is it 1 to 1 no duplicate name for the same phone number?
i think you can use two dictionary. hehe | F****n 发帖数: 3271 | 3 Bidirectional Map. Search BidiMap
【在 B***r 的大作中提到】 : You use hashtable to find phone given name, what kind of data structure : would you use to find “phone by name” and “name by phone”? : I can create a reverse map. But there should be a better solution. : Thx!
| B***r 发帖数: 79 | |
|