You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a way to store a collection of data like numbers, where each data is part of a chain. instead of being stored one after another in the memory, each item is placed in a node located at a diffrent memory address (Unlike Array it's not contiguous)
There are two types of linked list:
Singly Linked List
Doubly Linked List
What's Node?
It's an object which holds data and addresses.
There are two types of nodes:
Singly: this type stores two things
Data
Address of the next node
Doubly: this type stores three things
Data
Address of the next node
address of the previous node