[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685724-105":59,"doc-detail-685724-en":130,"doc-similar-685724":169},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","linked-lists-chapter-3-overview","LINKED LISTS - Chapter 3 - overview","","Chapter 3 introduces linked lists as a fundamental non-sequential data structure and explains how they can serve as a basis for implementing other structures such as stacks and queues. It compares linked lists with arrays, focusing on fixed versus dynamic sizing, memory allocation strategies (heap per node vs contiguous array blocks), and trade-offs in insertion, deletion, and searching. The chapter also covers pointer terminology and C memory management using malloc() and free(), then presents linked list concepts, advantages, disadvantages, and core types.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/linked-lists-chapter-3-overview/685724/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/linked-lists-chapter-3-overview/685724.png","ImageObject",300,407,{"name":92,"@type":93},"Helloiii","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-11","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is a linked list and why is it called a dynamic data structure?","Question",{"text":112,"@type":113},"A linked list is a non-sequential collection of data items where each item has an associated pointer to the next item. It is dynamic because it can grow or shrink during program execution.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do linked lists and arrays differ in memory allocation?",{"text":117,"@type":113},"Arrays are typically allocated as a single contiguous block, while linked lists allocate memory for each element separately and only when needed, using heap allocation for nodes.",{"name":119,"@type":110,"acceptedAnswer":120},"What are the main types of linked lists covered in this chapter?",{"text":121,"@type":113},"The chapter lists four types: Single Linked List, Double Linked List, Circular Linked List, and Circular Double Linked List, each differing by how nodes link to successors and/or predecessors and whether there is a circular structure.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685724,1794016986,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":26,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":29,"preview_urls":144},5909897196768,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Chapter 3  \nLINKED LISTS  \nIn this chapter, the list data structure is presented. This structure can be used as the basis for the implementation of other data structures (stacks, queues etc.). The basic linked list can be used without modification in many programs.  \nHowever, some applications require enhancements to the linked list design.  \nThese enhancements fall into three broad categories and yield variations on linked lists that can be used in any combination: circular linked lists, double linked lists and lists with header nodes.  \nLinked lists and arrays are similar since they both store collections of data. Array is the most common data structure used to store collections of elements. Arrays are convenient to declare and provide the easy syntax to access any element by its index number. Once the array is set up, access to any element is convenient and fast. The disadvantages of arrays are:  \n The size of the array is fixed. Most often this size is specified at compile time. This makes the programmers to allocate arrays, which seems \"large enough\" than required.  \n Inserting new elements at the front is potentially expensive because existing elements need to be shifted over to make room.  \n Deleting an element from an array is not possible.  \nLinked lists have their own strengths and weaknesses, but they happen to be strong where arrays are weak. Generally array's allocates the memory for all its elements in one block whereas linked lists use an entirely different strategy. Linked lists allocate memory for each element separately and only when necessary.  \nHere is a quick review of the terminology and rules of pointers. The linked list code will depend on the following functions:  \nmalloc() is a system function which allocates a block of memory in the \"heap\" and returns a pointer to the new block. The prototype of malloc() and other heap functions are in stdlib.h. malloc() returns NULL if it cannot fulfill the request. It is defined by:  \nvoid *malloc (number_of_bytes)  \nSince a void * is returned the C standard states that this pointer can be converted to any type. For example,  \nchar *cp;  \ncp = (char *) malloc (100);  \nAttempts to get 100 bytes and assigns the starting address to cp. We can also use the sizeof() function to specify the number of bytes. For example,  \nint *ip;  \nip = (int *) malloc (100*sizeof(int));  \nfree() is the opposite of malloc(), which de-allocates memory. The argument to free() is a pointer to a block of memory in the heap ~~ ~~ a pointer which was obtained by amalloc() function. The syntax is:  \nfree (ptr);  \nThe advantage of free() is simply memory management when we no longer need a block.  \n3.1. Linked List Concepts:  \nA linked list is a non-sequential collection of data items. It is a dynamic data structure. For every data item in a linked list, there is an associated pointer that would give the memory location of the next data item in the linked list.  \nThe data items in the linked list are not in consecutive memory locations . They may be anywhere, but the accessing of these data items is easier as each data item contains the address of the next data item.  \nAdvantages of linked lists:  \nLinked lists have many advantages. Some of the very important advantages are:  \n1. Linked lists are dynamic data structures. i.e., they can grow or shrink during the execution of a program.  \n2. Linked lists have efficient memory utilization. Here, memory is not preallocated. Memory is allocated whenever it is required and it is de-allocated (removed) when it is no longer needed.  \n3. Insertion and Deletions are easier and efficient. Linked lists provide flexibility in inserting a data item at a specified position and deletion of the data item from the given position.  \n4. Many complex applications can be easily carried out with linked lists.  \nDisadvantages of linked lists:  \n1. It consumes more space because every node requires a additional pointer to store address of the next node.  \n2. Searching a","cbCaig2g3uxkTzID","https://ap.wps.com/l/cbCaig2g3uxkTzID","pdf",1122686,"English","# Chapter 3: LINKED LISTS\n## Linked list data structure overview\n## Enhancements and variations\n## Linked lists vs arrays\n## Pointers and heap memory (malloc, free)\n## Linked list concepts, advantages, and disadvantages\n## Types of linked lists (single, double, circular)\n## Comparison table: array vs linked list","[{\"question\":\"What is a linked list and why is it called a dynamic data structure?\",\"answer\":\"A linked list is a non-sequential collection of data items where each item has an associated pointer to the next item. It is dynamic because it can grow or shrink during program execution.\"},{\"question\":\"How do linked lists and arrays differ in memory allocation?\",\"answer\":\"Arrays are typically allocated as a single contiguous block, while linked lists allocate memory for each element separately and only when needed, using heap allocation for nodes.\"},{\"question\":\"What are the main types of linked lists covered in this chapter?\",\"answer\":\"The chapter lists four types: Single Linked List, Double Linked List, Circular Linked List, and Circular Double Linked List, each differing by how nodes link to successors and/or predecessors and whether there is a circular structure.\"}]","LINKED LISTS - Chapter 3 - overview | PDF",151,[145,149,153,157,161,165],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9db47566cbc40278e395fe4e4e2fc245.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/736cd3c4d091f782bf7bdd43591c53b3.webp",982,1388,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a4515f98a2c7da6f9a766f8b60491238.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/4bf4af31740d41eb6af227be3b566d38.webp",980,1385,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9c26f625a03c82f6a15d2864647f24e3.webp",979,1384,{"page_no":29,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e5ff91760b0fbb37c730cb524e1f4c6c.webp",978,1383,{"list":170,"token":66},[171,177,183,189,194,200,206,212,218,224],{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":81,"category_name":30,"create_tm":176},732881,"CS 15 - LinkedLists Lab","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413517/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=tG43NxZs%2FzSDKFEA5lekrKX8YMw%3D","cs-15-linkedlists-lab",1795382679,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":81,"category_name":30,"create_tm":182},732874,"Unit11-Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780339/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=1fCs7TxHb4gdLvJeHGe7E3wm4Uw%3D","unit11-linked-lists",1795382671,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":24,"category_name":30,"create_tm":188},685730,"Chapter 4 Linked Lists - 4.1 Singly Linked Lists Or Chains","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000185878/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=HCd7xHtQ2ApUFIWtCoVn2mi%2BaEk%3D","chapter-4-linked-lists-41-singly-linked-lists-or-chains",1794017203,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":81,"category_name":30,"create_tm":176},732880,"Linked List Basics - Linked List Basics - Insertion, Deletion, Navigation, and Advanced Operations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780344/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=tadBF2KdVOqyhC9syJW%2Fo4m0F4c%3D","linked-list-basics-linked-list-basics-insertion-deletion-navigation-and-advanced-operations",{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":24,"category_name":30,"create_tm":199},685716,"Linked Lists - Introduction - Properties, Advantages, Disadvantages, and Types","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999688533/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=zk1bA7cycJaPshla7ffimbWJLME%3D","linked-lists-introduction-properties-advantages-disadvantages-and-types",1794016969,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":34,"category_name":30,"create_tm":205},697952,"Python Session 2 - Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141975/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=U1UgeJV0IrRzcNWSHSxUWbR3hQU%3D","python-session-2-data-structures",1794446325,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":19,"category_name":30,"create_tm":211},685674,"Lecture 18 - Linked Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999686601/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=xAPER5FVZDla14j5L2MwrV%2FSY7E%3D","lecture-18-linked-lists",1794016551,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":14,"category_name":30,"create_tm":217},719601,"Chapter 9 - Data Structures: Linked Lists - Objectives & Self-Referential Classes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023815831/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=87HGmCEtD8Wt%2BFBfuxNzLk2HQ8U%3D","chapter-9-data-structures-linked-lists-objectives-self-referential-classes",1795006745,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":29,"category_name":30,"create_tm":223},685719,"Data Structures - Linked List - Unit 3","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000182441/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=WQL1XgC4ae0sjJXX4FAijJGmHaE%3D","data-structures-linked-list-unit-3",1794016973,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":81,"category_name":30,"create_tm":229},671623,"Data Structures Cheat Sheet - Time Complexity and Core Properties","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988381074/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=HV%2B6saBzKJ%2BTsJbFVZdVWBjYHe8%3D","data-structures-cheat-sheet-time-complexity-and-core-properties",1793577648]