Link to home
Create AccountLog 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
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.