[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-732880-105":59,"doc-detail-732880-en":130,"doc-similar-732880":161},{"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-list-basics-linked-list-basics-insertion-deletion-navigation-and-advanced-operations","Linked List Basics - Linked List Basics - Insertion, Deletion, Navigation, and Advanced Operations","","Linked list basics explain how linked structures connect nodes through links rather than contiguous memory. The document defines core terms such as Link, Next, and LinkedList with First and termination via a null last link. It covers three-step insertion at the beginning, two-step deletion of the first node, and recursive-style navigation used by search and delete. It also provides advanced operations including sorting with bubble sort and reversing by pointer reassignment.",{"@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-list-basics-linked-list-basics-insertion-deletion-navigation-and-advanced-operations/732880/",{"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-list-basics-linked-list-basics-insertion-deletion-navigation-and-advanced-operations/732880.png","ImageObject",300,407,{"name":92,"@type":93},"Guten tag","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-22",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 how is it connected internally?","Question",{"text":112,"@type":113},"A linked list is a sequence of data structures connected via links. Each node stores an element and a Next reference to another node, with a First reference for the start and a null link to mark the end.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does insertion at the beginning work in the given algorithm?",{"text":117,"@type":113},"Insertion creates a new node with the provided key and data, points the new node’s next to the old first node, and then updates the head to the new node.",{"name":119,"@type":110,"acceptedAnswer":120},"How are sort and reverse implemented for a linked list?",{"text":121,"@type":113},"Sorting uses bubble sort logic to compare node data values and swap both data and keys as needed. Reversing reassigns next pointers iteratively, updating the head reference to the previous node at the end.","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},732880,1795382679,{"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":24,"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":19,"preview_urls":144},687212321768,"https://ap-avatar.wpscdn.com/avatar/a0010bdbe886d2fe77?x-image-process=image/resize,m_fixed,w_180,h_180&k=1789897067658708522","DATA STRUCTURE--LIINKED LIIST  \n[http://www.tutorialspoint.com/data_structures_algorithms/linked_lists_algorithm.htm](http://www.tutorialspoint.com/data_structures_algorithms/linked_lists_algorithm.htm) Copyright © [tutorialspoint.com](tutorialspoint.com)  \nLinked List Basics  \nA linked-list is a sequence of data structures which are connected together via links.  \nLinked List is a sequence of links which contains items. Each link contains a connection to another link. Linked list the second most used data structure after array. Following are important terms to understand the concepts of Linked List.  \n Link − Each Link of a linked list can store a data called an element.  \n Next − Each Link of a linked list contain a link to next link called Next.  \n LinkedList − A LinkedList contains the connection link to the first Link called First. Linked List Representation  \nAs per above shown illustration , following are the important points to be considered.  \n LinkedList contains an link element called first.  \n Each Link carries a data fields and a Link Field called next.  \n Each Link is linked with its next link using its next link.  \n Last Link carries a Link as null to mark the end of the list.  \nTypes of Linked List  \nFollowing are the various flavours of linked list.  \n Simple Linked List − Item Navigation is forward only.  \n Doubly Linked List − Items can be navigated forward and backward way.  \n Circular Linked List − Last item contains link of the first element as next and and first element has link to last element as prev.  \nBasic Operations  \nFollowing are the basic operations supported by a list.  \n Insertion − add an element at the beginning of the list.  \n Deletion − delete an element at the beginning of the list.  \n Display − displaying complete list.  \n Search − search an element using given key.  \n Delete − delete an element using given key.  \nInsertion Operation  \nInsertion is a three step process −  \n Create a new Link with provided data .  \n Point New Link to old First Link.  \n Point First Link to this New Link.  \n//insert link at the first location  \nvoid insertFirst(int key , int data){  \n//create a link  \nstruct node * link = (struct node * ) malloc(sizeof(struct node)); link->key = key;  \nlink->data = data;  \n//point it to old first node  \nlink->next = head;  \n//point first to new first node  \nhead = link;}  \nDeletion Operation  \nDeletion is a two step process −  \n Get the Link pointed by First Link as Temp Link.  \n Point First Link to Temp Link's Next Link.  \n//delete first item  \nstruct node * deleteFirst(){  \n//save reference to first link  \nstruct node * tempLink = head;  \n//mark next to first link as first  \nhead = head->next;  \n//return the deleted link  \nreturn tempLink;}  \nNavigation Operation  \nNavigation is a recursive step process and is basis of many operations like search , delete etc . −  Get the Link pointed by First Link as Current Link.  \n Check if Current Link is not null and display it.  \n Point Current Link to Next Link of Current Link and move to above step.  \nNote −  \n//display the list  \nvoid printList(){  \nstruct node * ptr = head;  \nprintf( \"\\n[ \" ) ;  \n//start from the beginning  \nwhile(ptr != NULL){  \nprintf( \" (%d ,%d) \" , ptr->key , ptr->data); ptr = ptr->next;  \n}  \nprintf( \" ] \" ) ;}  \nAdvanced Operations  \nFollowing are the advanced operations specified for a list.  \n Sort − sorting a list based on a particular order .  \n Reverse − reversing a linked list.  \nSort Operation  \nWe 've used bubble sort to sort a list.  \nvoid sort(){  \nint i , j, k, tempKey , tempData ;  \nstruct node * current;  \nstruct node * next;  \nint size = length();  \nk = size ;  \nfor ( i = 0 ; i \u003C size - 1 ; i ++, k- - ) { current = head ;  \nnext = head->next ;  \nfor ( j = 1 ; j \u003C k ; j++ ) {  \nif ( current->data > next->data ) { tempData = current->data ;  \ncurrent->data = next->data;  \nnext->data = tempData ;  \ntempKey = current->key;  \ncurrent->key = next->key;  \nnext->key = tempKey;}  \ncurrent = current->n","cbCaiu5Qmkc4VA2w","https://ap.wps.com/l/cbCaiu5Qmkc4VA2w","pdf",122105,"English","# Linked List Basics\n## Types of Linked List\n## Basic Operations\n### Insertion Operation\n### Deletion Operation\n### Navigation Operation\n## Advanced Operations\n### Sort Operation\n### Reverse Operation","[{\"question\":\"What is a linked list and how is it connected internally?\",\"answer\":\"A linked list is a sequence of data structures connected via links. Each node stores an element and a Next reference to another node, with a First reference for the start and a null link to mark the end.\"},{\"question\":\"How does insertion at the beginning work in the given algorithm?\",\"answer\":\"Insertion creates a new node with the provided key and data, points the new node’s next to the old first node, and then updates the head to the new node.\"},{\"question\":\"How are sort and reverse implemented for a linked list?\",\"answer\":\"Sorting uses bubble sort logic to compare node data values and swap both data and keys as needed. Reversing reassigns next pointers iteratively, updating the head reference to the previous node at the end.\"}]","Linked List Basics - Linked List Basics - Insertion, Deletion, Navigation, and Advanced Operations | PDF",13,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/0d8fd19a686cce3199417f527dcd629f.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/ae30bcca699b027285f65f1410d4e410.webp",982,1389,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/d6212b87ac278d28be69ef6b144c5e4d.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/07e4bb4a8e52bf6e03a6901f36dcf50e.webp",980,1386,{"list":162,"token":66},[163,169,174,180,186,192,198,204,210,216],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":81,"category_name":30,"create_tm":168},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=1796111459&Signature=KLrKomezVHOEBs5fi7SQl9D88fs%3D","unit11-linked-lists",1795382671,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":81,"category_name":30,"create_tm":129},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=1796111459&Signature=LeiWR%2B93BhNiJyQs1b%2BeFRtmxlg%3D","cs-15-linkedlists-lab",{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":34,"category_name":30,"create_tm":179},685731,"Lecture Five - Linked List Structure","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999689386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=z02McILM0rfHLA6V3P8rh7vQ1SM%3D","lecture-five-linked-list-structure",1794017204,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":14,"category_name":30,"create_tm":185},685743,"12-Linked Lists - Algorithms: longest sublist sum to n","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000186244/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=JvOZD4vTOLpn6FAKDKBPi6dDCOM%3D","12-linked-lists-algorithms-longest-sublist-sum-to-n",1794017227,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":81,"category_name":30,"create_tm":191},685724,"LINKED LISTS - Chapter 3 - overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000182527/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=JepdCV2NACNnUfUrMb9vRTZ9bFo%3D","linked-lists-chapter-3-overview",1794016986,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":34,"category_name":30,"create_tm":197},685760,"CS62 Class 8 - Linked lists - Basic Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000192614/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=PE7lJ90Y3e5msSF6LYdWSSN7Y5o%3D","cs62-class-8-linked-lists-basic-data-structures",1794017629,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":24,"category_name":30,"create_tm":203},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=1796111459&Signature=jIk5O0BIe%2BeRrzv88zHU0OUOAEg%3D","chapter-4-linked-lists-41-singly-linked-lists-or-chains",1794017203,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":34,"category_name":30,"create_tm":209},697943,"Lecture 12 Doubly Linked Lists - (with Recursion)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009212198/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=%2BxnWRzDrptRtbMg1TWYVDoheQy8%3D","lecture-12-doubly-linked-lists-with-recursion",1794446071,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":24,"category_name":30,"create_tm":215},697945,"Linked Lists - Part 19 - Data Structures Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009214291/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=XlXLycISu87fgpHMnYrB59gbaDs%3D","linked-lists-part-19-data-structures-lecture-notes",1794446271,{"doc_id":217,"doc_title":218,"file_type":137,"home_preview_img_url":219,"slug":220,"view_count":19,"category_name":30,"create_tm":221},732876,"Lecture 10 - Linked Lists - Lecture notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031413512/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=2v0mlNcFEFebPWRtcdLJ%2BGck1g0%3D","lecture-10-linked-lists-lecture-notes",1795382672]