Linked List Data Structure
Linked Lists vs Arrays
A linked list is a linear collection of data, in which elements are not stored at a contiguous memory location. It is made up of independent objects, which are known as nodes. Each node has two fields: one contains the data and the second contains a pointer that references the next node.
Types of Linked Lists
Singly Linked List: can only navigate forward when traversing a list.
Doubly Linked List: can navigate forward and backward when traversing a list.
Circular Linked List: the last element in the list points back to the first element.
Linked Lists vs. Arrays
Linked lists are regularly compared to arrays. Each structure has its advantages and disadvantages. The structure one chooses to implement depends on the problem one want to solve. Here’s a list of the differences between linked lists and arrays:
Citation