Most Common Data Structures that you need to know.

Faheem Khan
1 min readJan 2, 2023

--

There are many different data structures that have been developed over the years. Some common data structures include:

Arrays:

An array is a linear data structure that stores a fixed-size sequential collection of elements of the same data type.

Linked lists:

A linked list is a linear data structure that consists of a group of nodes, where each node contains a value and a pointer to the next node in the list.

Stacks:

A stack is a linear data structure that stores a collection of items, with the last item added being the first one to be removed (last in, first out).

Queues:

A queue is a linear data structure that stores a collection of items, with the first item added being the first one to be removed (first in, first out).

Trees:

A tree is a non-linear data structure that consists of nodes organized into a hierarchy.

Graphs:

A graph is a non-linear data structure that consists of a set of vertices (nodes) and a set of edges connecting the vertices.

Hash tables:

A hash table is a data structure that is used to store keys and values in a way that allows for fast insertion and retrieval.

There are many other data structures as well, such as heaps, sets, and matrices.

--

--

Faheem Khan
Faheem Khan

Written by Faheem Khan

AI/ML Engineer | Writing on algorithms, data, and AI’s transformative impact. Passionate about simplifying complexity and inspiring innovation. Let’s create!

No responses yet