DEV Community

Saloni Goyal
Saloni Goyal

Posted on

Name an every day object/scenario that serves as an example of a popular data structure

Top comments (2)

Collapse
 
bertilmuth profile image
Bertil Muth

A phone book is an example of a map data structure, where the name is the key, and the number is the value.

Interestingly, in some programming languages, a map is called a dictionary. So I guess a dictionary is also a good example of a map :-)

Collapse
 
blender profile image
Saloni Goyal

Wow, both very good examples.