Link to home
Start Free TrialLog in
Avatar of paragm78
paragm78

asked on

Data structure to store a contact list


Hello,

I have to use some data structure to store a contact list ie a list of names and the corresponding phone numbers.
What would be the most suitable data structure ?
I have been thinking about a SortedMap, Set, vector etc ...

My main operations on this contact list would be to update it from another Master contact list.

Thanks !
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paragm78
paragm78

ASKER


Hi,

Basically, I have 2 versions of this data ( Name and Phone number) .
I have to periodically (once a day) synchronize these 2 versions so that both are consistent with each other.

Hence , I want a suitable data structure.