Topics: Data Structure
A list is a linear data structure that contains a variable number of elements that are related one to the other.
To iterate through the list, it is necessary to know where it begins and where it ends. Because of that, whenever we can reach the first element, we can also reach the rest of the elements.
Lists can be contiguous (i.e. an array) or linked. Linked lists can be simple or doubly linked. Lists have the following operations:
- Iteration through the list
- Element insertion
- Element deletion
- Element search