Linked List Data Structure

Yasir
1 min readMay 4, 2020

--

LinkedList explained with program and concept explanation .

Image Representing a Linked List

When someone says a linked list means they were talking about singly linked list . In order to understand it , think of every node as a container having two values . First one is their own value and second one is address of next node .

When you talk about Array data structure then their memory localised in continue manner , while in linked list you can take a memory block any where you want and connect that with your reference address .

In above diagram , there is four nodes and connected through their memory address referencing . As in first node “35” is its value and “1001” is address of next node for referencing . While 1000 is its own memory address .

Let us Implement it in a C++ Program : —

Program Implementing Linked List

--

--

Yasir
Yasir

Written by Yasir

Exploring Swift, SwiftUI, and Apple Universe.

No responses yet