Summary
Keywords
Full Transcript
Support Simple Snippets by Donations - Google Pay UPI ID - tanmaysakpal11@okicici PayPal - paypal.me/tanmaysakpal11 --------------------------------------------------------------------------------------------- Definition : A linked list is a linear data structure, in which the elements are not stored at contiguous memory locations. The elements in a linked list are linked using pointers(entity that point to the next element) In simple words, a linked list consists of nodes where each node contains a data field and a reference(link) to the next node in the list. Some important terms in Linked List DS - 1. Node/Link/Element/Object - Each node in the linked list consists of 2 parts - a) data b) link to the next node 2. Next - This points to the next node/element in the linked list (since they are not stored in a contiguous memory locations) Following are the standard Linked List Operations - 1. Traversing a linked list. 2. Append a new node (to the end) of a list 3. Prepend a new node (to the beginning) of the list 4. Inserting a new node to a specific position on the list 5. Deleting a node from the list Types of Linked List - 1. Singly Linked List 2. Doubly Linked List 3. Circular Linked List Applications of Linked List - 1. Linked Lists can be used to implement Stacks , Queues. 2. Linked Lists can also be used to implement Graphs. (Adjacency list representation of Graph). 3. Implementing Hash Tables :- Each Bucket of the hash table can itself be a linked list. (Open chain hashing). 4. Undo functionality in Photoshop or Word . Linked list of states Full DSA playlist - https://www.youtube.com/watch?v=XCyuHSJS7XE&list=PLIY8eNdw5tW_zX3OCzX7NJ8bL1p6pWfgG C++ Programming Tutorials for Beginners Course - https://www.youtube.com/watch?v=AKNGgAXTark&list=PLIY8eNdw5tW_o8gsLqNBu8gmScCAqKm2Q Some more applications of Linked List - https://www.quora.com/What-is-an-application-of-linear-linked-list-data-structures Simple Snippets Official Website - http://simplesnippets.tech/ Simple Snippets on Facebook - https://www.facebook.com/simplesnippets/ Simple Snippets on Instagram - https://www.instagram.com/simplesnippets/ Simple Snippets on Twitter - https://twitter.com/simplesnippet Simple Snippets Google Plus Page - https://plus.google.com/+SimpleSnippets Simple Snippets email ID - [email protected] For More Technology News, Latest Updates and Blog articles visit our Official Website - http://simplesnippets.tech/ #linkedlist #linkedlistdatastructure #datastructures #linkedlistds #linkedlistoperations
