RoadMap to Mastering Linked List

Unlocking the Power of Linked Lists: A Comprehensive Roadmap to Mastering the Core Data Structure

RoadMap to Mastering Linked List

"Linked List Data Structure Indeeds an Important Asset in the Inventory of Technical Interviews. Interviewers often assess candidates' understanding of Linked Lists due to their fundamental properties and the variety of operations that can be performed on them."

Definition

  • Linked List is a linear data structure. It is a series of connected nodes, where each node stores : 1. Data 2. Next pointer( it points to next node and stores the address of next node)

Elements are not stored at a contiguous location, rather they are linked using pointers.


Types of linked lists

  1. Singly Linked List

  2. Doubly Linked List

  3. Circular Linked List


Applications

  1. Think about how backward & forward navigation is done in web browsers

  2. Imagine how your music player songs are played , how you are able to navigate to previous song or next song

Linked List is the master behind all these discoveries


Standard Operations on Linked List :

  • Traversal Operations

  • Insertion Operations

  • Deletion Operations

  • Searching Operations

  • Sorting Operations

These are the fundamental operations performed on linked list. And there are various models within each and every operation. We will be covering all the operations in detail with pseudocode + program code.


Standard Topics

OperationTypes
π‘»π’“π’‚π’—π’†π’“π’”π’‚π’πΏπ‘’π‘›π‘”π‘‘β„Ž π‘œπ‘“ 𝑙𝑖𝑠𝑑
π‘ƒπ‘Ÿπ‘–π‘›π‘‘π‘–π‘›π‘” π‘‘β„Žπ‘’ 𝑙𝑖𝑠𝑑
π‘°π’π’”π’†π’“π’•π’Šπ’π’ 𝒐𝒇 π’π’†π’˜ π’π’π’…π’†πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› of π‘Žπ‘‘ πΉπ‘–π‘Ÿπ‘ π‘‘ π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΏπ‘Žπ‘ π‘‘ π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑀𝑖𝑑𝑑𝑙𝑒 π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘› π‘“π‘Ÿπ‘œπ‘š π‘‘β„Žπ‘’ 𝑒𝑛𝑑
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΉπ‘–π‘Ÿπ‘ π‘‘ 𝑖𝑛𝑑𝑒π‘₯
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ π‘™π‘Žπ‘ π‘‘ 𝑖𝑛𝑑𝑒π‘₯
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑀𝑖𝑑𝑑𝑙𝑒 𝑖𝑛𝑑𝑒π‘₯
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž 𝑖𝑛𝑑𝑒π‘₯
πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž 𝑖𝑛𝑑𝑒π‘₯ π‘“π‘Ÿπ‘œπ‘š π‘‘β„Žπ‘’ 𝑒𝑛𝑑
π‘«π’†π’π’†π’•π’Šπ’π’ 𝒐𝒇 π’π’π’…π’†π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΉπ‘–π‘Ÿπ‘ π‘‘ π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΏπ‘Žπ‘ π‘‘ π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑀𝑖𝑑𝑑𝑙𝑒 π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘›
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž π‘π‘œπ‘ π‘–π‘‘π‘–π‘œπ‘› π‘“π‘Ÿπ‘œπ‘š π‘‘β„Žπ‘’ 𝑒𝑛𝑑
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΉπ‘–π‘Ÿπ‘ π‘‘ 𝑖𝑛𝑑𝑒π‘₯
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ πΏπ‘Žπ‘ π‘‘ 𝑖𝑛𝑑𝑒π‘₯
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑀𝑖𝑑𝑑𝑙𝑒 𝑖𝑛𝑑𝑒π‘₯
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž 𝑖𝑛𝑑𝑒π‘₯
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘Žπ‘‘ 𝑖'π‘‘β„Ž 𝑖𝑛𝑑𝑒π‘₯ π‘“π‘Ÿπ‘œπ‘š π‘‘β„Žπ‘’ 𝑒𝑛𝑑
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘œπ‘“ π‘π‘Žπ‘Ÿπ‘‘π‘–π‘π‘’π‘™π‘Žπ‘Ÿ π‘›π‘œπ‘‘π‘’
π·π‘’π‘™π‘’π‘‘π‘–π‘œπ‘› π‘œπ‘“ π‘π‘Žπ‘Ÿπ‘‘π‘–π‘π‘’π‘™π‘Žπ‘Ÿ π‘£π‘Žπ‘™π‘’π‘’π‘‘ π‘›π‘œπ‘‘π‘’
π‘Ίπ’π’“π’•π’Šπ’π’ˆπ‘†π‘œπ‘Ÿπ‘‘ π‘‘β„Žπ‘’ π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘ 𝑏𝑦 𝐡𝑒𝑏𝑏𝑙𝑒 π‘†π‘œπ‘Ÿπ‘‘
π‘†π‘œπ‘Ÿπ‘‘ π‘‘β„Žπ‘’ π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘ 𝑏𝑦 πΌπ‘›π‘ π‘’π‘Ÿπ‘‘π‘–π‘œπ‘› π‘†π‘œπ‘Ÿπ‘‘
π‘†π‘œπ‘Ÿπ‘‘ π‘‘β„Žπ‘’ π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘ 𝑏𝑦 π‘†π‘’π‘™π‘’π‘π‘‘π‘–π‘œπ‘› π‘†π‘œπ‘Ÿπ‘‘
π‘†π‘œπ‘Ÿπ‘‘ π‘‘β„Žπ‘’ π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘ 𝑏𝑦 π‘€π‘’π‘Ÿπ‘”π‘’ π‘†π‘œπ‘Ÿπ‘‘
π‘Ίπ’†π’‚π’“π’„π’‰π’Šπ’π’ˆπΏπ‘–π‘›π‘’π‘Žπ‘Ÿ π‘†π‘’π‘Žπ‘Ÿπ‘β„Ž π‘œπ‘› π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘
𝐹𝑖𝑛𝑑 π‘Žπ‘› π‘’π‘™π‘’π‘šπ‘’π‘›π‘‘ 𝑖𝑛 π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘
π΅π‘–π‘›π‘Žπ‘Ÿπ‘¦ π‘†π‘’π‘Žπ‘Ÿπ‘β„Ž π‘œπ‘› π‘™π‘–π‘›π‘˜π‘’π‘‘π‘™π‘–π‘ π‘‘

In the next post, I will be posting about the implementations. Follow the series to learn more about linked lists

Β