Reading_Notes

View the Project on GitHub Hiba-Almade/Reading_Notes

Linked Lists:

What is a linked list?

A linked list is a series of nodes that are connected to each other as each node points to the next node in the link.

>> Two types of linked lists: single and double:

doubly

>> We also have:

Nodes are the elements.

This property contains a reference to the next node.


>> A linked list is usually efficient when it comes to adding and removing most items, but it can be very slow to search and find a single item.

>> The difference between arrays and linked lists is the way they use memory in our machines.

When an array is created, it needs a certain amount of memory in one place.

But when you create a linked list, it doesn’t need units of memory all in one place. One byte can live somewhere, while the next byte can be stored somewhere else in memory altogether!