Posts

Showing posts from March, 2020

Linked List

Image
Let us understand link list from the scratch .Ignoring weather it is data structure or all the irksome terms that we do not want to tackle. So what if I tell you link list is used for insertion task and also for deletion. Sounds simple isn't it? Yes it is. For what we need to do this insertion and deletion task? For updating the data that is required to perform a certain operation. Now that we are clear with understanding the job of the link list let us look at the link list as a data structure. It consists of node that is a type of object. Node has two parts, one is for storing data and other for pointing the adress of the next data item.  Let us have a look at one example for better understanding say, if i want to create a link list that will give me output as prime numbers only so I will have to create a head that will point towards the first node which will have 2 as the data inserted in it and the next part of the node will point at the data part of the second node which...