[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685674-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-685674-en":130,"doc-similar-685674":225},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","lecture-18-linked-lists","Lecture 18 - Linked Lists","","This document provides an educational overview of linked lists as a fundamental data structure in computer science. It introduces the concept by contrasting it with arrays, specifically addressing memory allocation challenges and the use of non-contiguous memory on the heap. The content covers core topics including memory management, pointers, and the implementation of linked data structures within a class-based programming framework. It serves as a lecture guide for students, facilitating the transition from abstract data structures to practical C++ implementation, memory organization, and algorithmic analysis techniques essential for software development.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/lecture-18-linked-lists/685674/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/lecture-18-linked-lists/685674.png","ImageObject",300,407,{"name":42,"@type":43},"Blue Pony","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the primary motivation for using linked lists instead of arrays?","Question",{"text":62,"@type":63},"Linked lists allow for the organization of non-contiguous memory on the heap, solving limitations related to static memory allocation and the fixed-size nature of arrays.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the document describe the relationship between variables and memory?",{"text":67,"@type":63},"The document explains that every variable created in a program has a specific address in computer memory, located either on the stack or the heap.",{"name":69,"@type":60,"acceptedAnswer":70},"What are the core topics covered in this lecture?",{"text":71,"@type":63},"The lecture covers a review of memory and pointers, the definition of linked lists, how to integrate them into classes, and methods for manipulating linked list structures.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},685674,1794016551,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":117,"preview_urls":145},962090760266,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Linked Lists  \nWhat’s something annoying/frustrating  \nabout arrays?  \nFeel free to mention something that’s come up in A4  \nor something that’s confusing from lecture.  \n( [pollev.com/cs106bpoll](pollev.com/cs106bpoll))   \nObject-Oriented  \nRoadmap  \nC++ basics  \nUser/client  \n\n| \u003Cbr>| ectors + grids stacks + queues sets + maps |\n| --- | --- |\n\nProgramming  \narrays  \ndynamic memory management  \nlinked data structures  \nImplementation  \nCore Tools  \ntesting  \nalgorithmic analysis  \nreal-world  algorithms  \nLife after CS106B!  \nrecursive  \nproblem-solving  \nRoadmap  \nUser/client  \nImplementation  \n arrays  \n dynamic memory management  \n linked data structures  \nCore Tools  \nLife after CS106B!  \nToday’s question  \nHow can we use pointers to organize non-contiguous memory on the heap?  \nToday’s  \ntopics  \n1. Review  \n2. What is a linked list?  \n3. How do we use linked lists in a class?  \n4. How do we manipulate linked lists?  \nReview  \n[memory and pointers]  \nLevels of abstraction  \nAbstract Data Structures  \nData Organization Strategies  \nFundamental C++ Data Storage  \nComputer Hardware  \nHow is computer memory organized?  \n0xfca0b000  \nPointers and Memory  \n● Every variable you create has an address in memory on your computer (either on the stack or the heap) .","cbCaijJHPbEWB3qo","https://ap.wps.com/l/cbCaijJHPbEWB3qo","pdf",2123165,196,"English","# Review\n## Memory and Pointers\n# What is a Linked List?\n# Using Linked Lists in a Class\n# Manipulating Linked Lists","[{\"question\":\"What is the primary motivation for using linked lists instead of arrays?\",\"answer\":\"Linked lists allow for the organization of non-contiguous memory on the heap, solving limitations related to static memory allocation and the fixed-size nature of arrays.\"},{\"question\":\"How does the document describe the relationship between variables and memory?\",\"answer\":\"The document explains that every variable created in a program has a specific address in computer memory, located either on the stack or the heap.\"},{\"question\":\"What are the core topics covered in this lecture?\",\"answer\":\"The lecture covers a review of memory and pointers, the definition of linked lists, how to integrate them into classes, and methods for manipulating linked list structures.\"}]","Lecture 18 - Linked Lists | PDF",494,[146,150,153,157,160,164,167,171,174,178,182,186,191,195,200,204,209,214,218,222],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/2e2af463f70322f003122bbb13f33b1b.webp",983,552,{"page_no":26,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/99d9a902cc01aea9da0f5ecc98d92b50.webp",982,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6fb7533c50b18202acaec434d7f952d8.webp",981,551,{"page_no":33,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8080270b7b250ab6943035435b690dab.webp",980,{"page_no":96,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/10d3a10ff21c2f2d843d7d885b4993e5.webp",979,550,{"page_no":101,"url":165,"width":166,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/76a6925a15d66a59c7440e55e0cff802.webp",978,{"page_no":105,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/03b75c03d4aaef995422a6d89cc328d6.webp",977,549,{"page_no":110,"url":172,"width":173,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b504291654b35530713587d471e88d1e.webp",976,{"page_no":115,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e171c710afe9d29a0ce2bb3bf247c85d.webp",975,548,{"page_no":123,"url":179,"width":180,"height":181},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/1872d687103e979bcc71885e7161dbee.webp",974,547,{"page_no":183,"url":184,"width":185,"height":181},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/b9f1056ee1268f43cd3774102928cad1.webp",973,{"page_no":187,"url":188,"width":189,"height":190},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7c7c86be718a607534e315a8e17985b1.webp",972,546,{"page_no":192,"url":193,"width":194,"height":190},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ea7b0d0ffd6758f36fc9ba1ad26a6c8a.webp",971,{"page_no":196,"url":197,"width":198,"height":199},14,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/46509c11b69f1f4bf11d4c914ef476f1.webp",970,545,{"page_no":201,"url":202,"width":203,"height":199},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9e1b9f18a07515c17e482c898c257621.webp",969,{"page_no":205,"url":206,"width":207,"height":208},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5a80add8d639e513a51977c79f069167.webp",968,544,{"page_no":210,"url":211,"width":212,"height":213},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e3a05a24efd1e9f51a54818fe3dfb710.webp",967,543,{"page_no":215,"url":216,"width":217,"height":213},18,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0b6e9e6b80143eca4c8555ad832883e0.webp",966,{"page_no":127,"url":219,"width":220,"height":221},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f335944031e8b877efc52757e55bf92a.webp",965,542,{"page_no":117,"url":223,"width":224,"height":221},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/608961772174490a166f6829877573d3.webp",964,{"list":226,"token":11},[227,233,239,245,251,257,263,269,275,281],{"doc_id":228,"doc_title":229,"file_type":137,"home_preview_img_url":230,"slug":231,"view_count":30,"category_name":29,"create_tm":232},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=1796111999&Signature=krHIRlOED33cc0NX5TT2jwbftJg%3D","linked-lists-chapter-3-overview",1794016986,{"doc_id":234,"doc_title":235,"file_type":137,"home_preview_img_url":236,"slug":237,"view_count":96,"category_name":29,"create_tm":238},685762,"Linked List - Course 13004700 Part-2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999691129/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=jK2tAKMHRckPrfhTux%2FhMvButgM%3D","linked-list-course-13004700-part-2",1794017631,{"doc_id":240,"doc_title":241,"file_type":137,"home_preview_img_url":242,"slug":243,"view_count":30,"category_name":29,"create_tm":244},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=1796111999&Signature=o1%2BByYLmdRttPkW4V%2B5hWZFj3Sw%3D","unit11-linked-lists",1795382671,{"doc_id":246,"doc_title":247,"file_type":137,"home_preview_img_url":248,"slug":249,"view_count":105,"category_name":29,"create_tm":250},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=1796111999&Signature=FTE1yqlet7ErMC3OQEemIAQoeYQ%3D","cs62-class-8-linked-lists-basic-data-structures",1794017629,{"doc_id":252,"doc_title":253,"file_type":137,"home_preview_img_url":254,"slug":255,"view_count":96,"category_name":29,"create_tm":256},685741,"ROHINI COLLEGE OF ENGINEERING & TECHNOLOGY - Linked list implementation - Singly linked lists - Core algorithms for traversal, counting, searching and insertion","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000186201/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=eUS5qZmrsZeOvQYSscOQa7khHK4%3D","rohini-college-of-engineering-technology-linked-list-implementation-singly-linked-lists-core-algorithms-for-traversal-counting-searching-and-insertion",1794017223,{"doc_id":258,"doc_title":259,"file_type":137,"home_preview_img_url":260,"slug":261,"view_count":105,"category_name":29,"create_tm":262},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=1796111999&Signature=8X7JB5rhGwME71uBW2NdRLc%2FXVM%3D","python-session-2-data-structures",1794446325,{"doc_id":264,"doc_title":265,"file_type":137,"home_preview_img_url":266,"slug":267,"view_count":33,"category_name":29,"create_tm":268},685722,"Linked List Basics - read and practice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000182486/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=TbXSK4%2B6Ix2hlqqfHptjqutTDfE%3D","linked-list-basics-read-and-practice",1794016978,{"doc_id":270,"doc_title":271,"file_type":137,"home_preview_img_url":272,"slug":273,"view_count":30,"category_name":29,"create_tm":274},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=1796111999&Signature=8WV9ECTFVlrd2uYQNzZsAL8UVaM%3D","cs-15-linkedlists-lab",1795382679,{"doc_id":276,"doc_title":277,"file_type":137,"home_preview_img_url":278,"slug":279,"view_count":26,"category_name":29,"create_tm":280},719605,"Linked Lists - lecture notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023815899/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=A%2FUUm9qDHybuKosEzlvUFd5He78%3D","linked-lists-lecture-notes",1795006752,{"doc_id":282,"doc_title":283,"file_type":137,"home_preview_img_url":284,"slug":285,"view_count":96,"category_name":29,"create_tm":286},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=1796111999&Signature=evgUSj7gHf4miXp%2FzO9l47PWgYE%3D","linked-lists-introduction-properties-advantages-disadvantages-and-types",1794016969]