What are data structures?
A data structure is a way of storing and unifying data in such a way that operations on that data can be performed in an efficient manner. The data can be stored in several ways. For example, we can have a Person object that contains a few properties, such as PersonID and PersonName, where PersonID is of the integer type and PersonName is of the string type. This Person object stores the data in memory, and can be further used to save that record in the database. Another example is an array called Countries of the string type that contains a list of countries. We can use the Countries array to retrieve a country name and use it in a program. Therefore, any type of object that stores data is called a data structure. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access