Data Structure and Algorithm
Linked List
Introduction to Linked List:
We have arrays concept in programming then why we need to know about LinkedList.
As array is continous memory allocation and variables can be created on different memory location hence there is a chance that we will loose memory space for continous array creation. To overcome this issue we need to have a datatype which can act as Array but won't be using contionous memory for storing data.
Graphical representation of issue and solution:
Array representation in memory:
Linked List representation as an object for memory:
Comments
Post a Comment