Skip to main content

Posts

Showing posts from November, 2018

LINKED LIST

We will talk about linked list today. Actually, it's a pretty much basic data structure..So,the very first question is what is linked list? 😲😲  ->  Actually, linked list is nothing but a list. We all know that array is also a list.. Linked list is also a list of some variables. Now, we should  why we should use linked list instead of Array? Mmmm..Let's think for a moment...Okey..👀👀.Now, we can see the flows of arrays and linked list. An array is a pre-allocated block of memory holding an ordered bunch of items. Aaaaa....what does it mean?👀👀  Actually, when you declared  👉👉                                        -> int arra[5]; in your code, then the thing is: RAM will allocate blocks of necessary size according to your array size. 😉😉 But, in linked-list, there is no limitations. You can create infinite size of list of elements using th...