Рет қаралды 4,758
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 Struc...
Array Data Structure: • Array Data Structure e...
📘 A text based explanation is available at: studyalgorithms.com/link_list...
Code on Github: github.com/nikoo28/java-solut...
📖 Reference Books:
Starting Learn to Code: amzn.to/36pU0JO
Favorite book to understand algorithms: amzn.to/39w3YLS
Favorite book for data structures: amzn.to/3oAVBTk
Get started for interview preparation: amzn.to/39ysbkJ
🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
🎥 My Recording Gear:
Recording Light: amzn.to/3pAqh8O
Microphone: amzn.to/2MCX7qU
Recording Camera: amzn.to/3alg9Ky
Tablet to sketch and draw: amzn.to/3pM6Bi4
Surface Pen: amzn.to/3pv6tTs
Laptop to edit vidoes: amzn.to/2LYpMqn
💻 Get Social 💻
Follow on Facebook at: / studyalgos
Follow on Twitter at: / studyalgorithms
Follow on Tumblr at: / studyalgos
Subscribe to RSS feeds: studyalgorithms.com/feed/
Join fan mail: eepurl.com/g9Dadv
#datastructures #programming #linkedlist