SlideShare a Scribd company logo
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
FEATURES OF LINKED LISTS
METHODS IN LINKED LISTS
TYPES OF LINKED LISTS
ARRAYS V/S LINKED LISTS
WHAT IS A LINKED LIST?
www.edureka.co
What is a Linked List?
www.edureka.co
What is a Linked List?
A Linked List a Data Structure similar to arrays, where each node is
interconnected to the next node through a memory address link.
A Linked List has three Elements, Namely:
• Head
• Nodes
• Tail
www.edureka.co
My Array[0] My Array[1] My Array[2] My Array[3] My Array[4]
=My Array[0] 10
ArrayRefVar = new dataType[arraySize];
=My Array new int[5]
What happens in an Array?
www.edureka.co
=My Array[2] 30
=My Array[3] 40
=My Array[4] 50
=My Array[1] 20
My Array[0] My Array[1] My Array[2] My Array[3] My Array[4]
10
ArrayRefVar = new dataType[arraySize];
=My Array new int[5]
What happens in an Array?
www.edureka.co
My Array[0] My Array[1] My Array[2] My Array[3] My Array[4]
10 30 40 5020
ArrayRefVar = new dataType[arraySize];
=My Array new int[5]
What happens in an Array?
www.edureka.co
What happens in Linked List?
Memory Heap
www.edureka.co
10
30
40
50
20
7328
30261001
4537
1023
What happens in Linked List?
www.edureka.co
Null50
302630100110
453740
102320
What happens in Linked List?
www.edureka.co
100110 102320 453740302630 Null50
What happens in Linked List?
Head Tail
Nodes
www.edureka.co
Types of Linked Lists
www.edureka.co
Types of Linked Lists
Singly Linked List
Circular Linked List
Doubly Linked List
www.edureka.co
AdrHead AdrNode AdrNodeAdrNode NullTail
Singly Linked List
A Singly Linked List nodes contains two fields, Namely:
• Address of the next node
• Data assigned to the present node
www.edureka.co
AdrHead
Doubly Linked List
A Doubly Linked List nodes contains three fields, Namely:
• Address of the next node
• Address of the previous node
• Data assigned to the present node
Null AdrNodeAdr AdrNodeAdr AdrNodeAdr NullTailAdr
www.edureka.co
AdrHead
AdrNodeAdrNode
AdrNode HeadTail
Circular Linked List
www.edureka.co
Features of Linked Lists
www.edureka.co
Que and Deque Interfaces
Linked Lists are SynchronizedInclude Duplicates
List IteratorMultithreaded Environment
Maintains Insertion orders No Random Access
Features of Linked Lists
www.edureka.co
Methods in Linked Lists
www.edureka.co
www.edureka.co
Convert Array to Linked List
www.edureka.co
Convert Linked List to Array
Array v/s Linked Lists
www.edureka.co
Arrays v/s Linked Lists
Arrays are not Resizable
Linked Lists are Dynamically Resizable
www.edureka.co
Arrays v/s Linked Lists
Arrays offer more Methods
Comparatively, Fewer Methods are available in Linked Lists
www.edureka.co
Arrays v/s Linked Lists
Insertion, addition and removal operations of an item are
faster in arrays
Comparatively, operations are slow in Linked Lists
www.edureka.co
Arrays v/s Linked Lists
Arrays consume more Memory
Linked Lists consume Less Memory
www.edureka.co
Java Linked List Tutorial |  Edureka
www.edureka.co

More Related Content

What's hot (20)

PPTX
AVL Tree in Data Structure
Vrushali Dhanokar
 
PPTX
Tree in data structure
ghhgj jhgh
 
PPTX
Linked List
Ashim Lamichhane
 
PPTX
Hash table in data structure and algorithm
Aamir Sohail
 
PPTX
Binary Search Tree in Data Structure
Dharita Chokshi
 
PPT
1.5 binary search tree
Krish_ver2
 
PPT
Binary Search
kunj desai
 
PDF
linked lists in data structures
DurgaDeviCbit
 
PPTX
Data structure & its types
Rameesha Sadaqat
 
PPSX
Data Structure (Queue)
Adam Mukharil Bachtiar
 
PPTX
linked list in Data Structure, Simple and Easy Tutorial
Afzal Badshah
 
PPTX
Sorting Algorithms
Pranay Neema
 
PDF
sparse matrix in data structure
MAHALAKSHMI P
 
PPT
Data Structures- Part5 recursion
Abdullah Al-hazmy
 
PPTX
Sorting algorithms
Trupti Agrawal
 
PPT
Linked lists
SARITHA REDDY
 
PPTX
Data Structures - Lecture 3 [Arrays]
Muhammad Hammad Waseem
 
PPT
stack presentation
Shivalik college of engineering
 
AVL Tree in Data Structure
Vrushali Dhanokar
 
Tree in data structure
ghhgj jhgh
 
Linked List
Ashim Lamichhane
 
Hash table in data structure and algorithm
Aamir Sohail
 
Binary Search Tree in Data Structure
Dharita Chokshi
 
1.5 binary search tree
Krish_ver2
 
Binary Search
kunj desai
 
linked lists in data structures
DurgaDeviCbit
 
Data structure & its types
Rameesha Sadaqat
 
Data Structure (Queue)
Adam Mukharil Bachtiar
 
linked list in Data Structure, Simple and Easy Tutorial
Afzal Badshah
 
Sorting Algorithms
Pranay Neema
 
sparse matrix in data structure
MAHALAKSHMI P
 
Data Structures- Part5 recursion
Abdullah Al-hazmy
 
Sorting algorithms
Trupti Agrawal
 
Linked lists
SARITHA REDDY
 
Data Structures - Lecture 3 [Arrays]
Muhammad Hammad Waseem
 

Similar to Java Linked List Tutorial | Edureka (20)

PPTX
LINKED LIST.pptx
Dr.Shweta
 
PPTX
Linked list in Data Structure and Algorithm
KristinaBorooah
 
PPTX
link list.pptx complete notes detailed ans
IqraHanif27
 
PPTX
Link list
Didar Rashad
 
PPTX
Link list
Didar Rashad
 
DOCX
Linked List
BHARATH KUMAR
 
PPTX
Linked List.pptx
GhufranKhan42
 
PPTX
Linked list
Muhammad Qasim
 
PDF
Linked List-Types.pdf
MaryJacob24
 
PDF
linked_lists
Mohamed Elsayed
 
PPTX
Data Structures and Algorithms - Lec 05.pptx
RameshaFernando2
 
PPT
Lecture 2b lists
Victor Palmar
 
PPTX
Chapter 4 Linked List introduction lessons.pptx
MohamedAhmed686097
 
PPT
PpptPresentationSilgkeLinkListpython.ppt
csec231102027
 
PPT
Sy ds -I
priyankabarhate1
 
PPT
Sy ds -I
priyankabarhate1
 
PPT
Sy ds i
priyankabarhate1
 
PPTX
Linked Lists in Data Structures ppt .pptx
zxcv20k4
 
PPTX
Linked list
Rumman Ansari
 
LINKED LIST.pptx
Dr.Shweta
 
Linked list in Data Structure and Algorithm
KristinaBorooah
 
link list.pptx complete notes detailed ans
IqraHanif27
 
Link list
Didar Rashad
 
Link list
Didar Rashad
 
Linked List
BHARATH KUMAR
 
Linked List.pptx
GhufranKhan42
 
Linked list
Muhammad Qasim
 
Linked List-Types.pdf
MaryJacob24
 
linked_lists
Mohamed Elsayed
 
Data Structures and Algorithms - Lec 05.pptx
RameshaFernando2
 
Lecture 2b lists
Victor Palmar
 
Chapter 4 Linked List introduction lessons.pptx
MohamedAhmed686097
 
PpptPresentationSilgkeLinkListpython.ppt
csec231102027
 
Linked Lists in Data Structures ppt .pptx
zxcv20k4
 
Linked list
Rumman Ansari
 
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 
Ad

Recently uploaded (20)

PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 

Java Linked List Tutorial | Edureka