Deleting a Node in a Linked List | Animations, Examples and Code | Study Algorithms

Published: 30 April 2021
on channel: Nikhil Lohia
5,476
161

Deleting a node in a linked list primarily consists of identifying the node to be deleted and then updating the pointer of the previous node. Once the node is free, the programming language marks it free for use by other applications. Based on this idea, the video shows how you can delete a node from the beginning, from the end and from the middle. You will also find code samples for each of the use cases implemented in JAVA

Chapters:
00:00 - Intro
00:39 - General idea to Delete a node
02:34 - Delete from Beginning
03:25 - Code to delete a node from beginning
04:25 - Delete from End
05:12 - Code to delete a node from end
07:28 - Delete from Middle
08:17 - Code to delete a node from middle
11:00 - Final Thoughts

📚 Links to topics I talk about in the video:
Linked List:    • Linked List Data Structure explained ...  
Array Data Structure:    • Array Data Structure explained with V...  

📘 A text based explanation is available at: https://studyalgorithms.com/link_list...

Code on Github: https://github.com/nikoo28/java-solut...

📖 Reference Books:
Starting Learn to Code: https://amzn.to/36pU0JO
Favorite book to understand algorithms: https://amzn.to/39w3YLS
Favorite book for data structures: https://amzn.to/3oAVBTk
Get started for interview preparation: https://amzn.to/39ysbkJ

🔗 To see more videos like this, you can show your support on: https://www.buymeacoffee.com/studyalg...

🎥 My Recording Gear:
Recording Light: https://amzn.to/3pAqh8O
Microphone: https://amzn.to/2MCX7qU
Recording Camera: https://amzn.to/3alg9Ky
Tablet to sketch and draw: https://amzn.to/3pM6Bi4
Surface Pen: https://amzn.to/3pv6tTs
Laptop to edit vidoes: https://amzn.to/2LYpMqn


💻 Get Social 💻
Follow on Facebook at:   / studyalgos  
Follow on Twitter at:   / studyalgorithms  
Follow on Tumblr at:   / studyalgos  
Subscribe to RSS feeds: https://studyalgorithms.com/feed/
Join fan mail: http://eepurl.com/g9Dadv

#datastructures #programming #linkedlist


On this page of the site you can watch the video online Deleting a Node in a Linked List | Animations, Examples and Code | Study Algorithms with a duration of hours minute second in good quality, which was uploaded by the user Nikhil Lohia 30 April 2021, share the link with friends and acquaintances, this video has already been watched 5,476 times on youtube and it was liked by 161 viewers. Enjoy your viewing!