[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-685744-105":3,"doc-detail-685744-en":80,"detail-sidebar-cat-0-en-105":105,"doc-similar-685744":153},{"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","elementary-data-structures-linked-lists-04_lists_easy_1","Elementary Data Structures - Linked Lists - 04_lists_easy_1","","Review slides for the Elementary Data Structures topic “Linked Lists”, authored by Alexandra Stefan. The material focuses on pointer fundamentals and memory behavior (stack vs heap), including NULL and bad/dangling pointer conventions, pointer assignment, and visual memory representations tied to code steps. It then explains linked list concepts—nodes, links, traversal termination at NULL—and outlines basic insertion and deletion workflows, supported with C struct patterns and typedef-based pointer types.",{"@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/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/elementary-data-structures-linked-lists-04_lists_easy_1/685744/",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/elementary-data-structures-linked-lists-04_lists_easy_1/685744.png","ImageObject",300,407,{"name":42,"@type":43},"Liam","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-11","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What pointer concepts should be reviewed before linked lists coding practice?","Question",{"text":62,"@type":63},"Review pointer representation and assignment, pointer-related examples (including the heap section), conventions for NULL and bad pointers, and how dangling pointers can occur in code.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the slide describe linked list structure and traversal?",{"text":67,"@type":63},"A linked list holds objects in nodes, where each node stores data plus a link to the next node. Traversal starts at the first node and ends when the next link is NULL.",{"name":69,"@type":60,"acceptedAnswer":70},"What C memory and struct details are emphasized for implementing linked lists?",{"text":71,"@type":63},"The slides emphasize representing lists as pointers (often to nodes or pointers to nodes), using struct node with a next pointer, understanding heap vs stack memory, and using typedef (e.g., nodePT) to simplify pointer types.","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},685744,1794017227,{"code":4,"msg":81,"data":82},"success",{"doc_id":78,"user_id":83,"nickname":42,"user_avatar":84,"doc_module":4,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":86,"file_id":87,"file_url":88,"file_type":89,"file_size":90,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":91,"language":92,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":93,"faqs":94,"seo_title":95,"seo_description":12,"update_tm":79,"read_time":96,"preview_page_count":26,"preview_urls":97},8796095461564,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Elementary Data Structures:  \nLinked Lists  \nAlexandra Stefan  \nWhat to Review  \n– Pointers – STUDENT SELF REVIEW (not reviewed in class)  \n• “Pointers and Memory”: [http://cslibrary.stanford.edu/102/PointersAndMemory.pdf](http://cslibrary.stanford.edu/102/PointersAndMemory.pdf)  \n– See more details in the next couple of slides.  \n– Heap vs stack  \n• See the pointers quiz posted on the Slides and Resources page.  \n– C struct and accessing individual fields with . and-> as appropriate  \n– typedef  \n– Linked lists: concept and implementation.  \n• “Linked Lists Basics”: [http://cslibrary.stanford.edu/103/LinkedListBasics.pdf](http://cslibrary.stanford.edu/103/LinkedListBasics.pdf)  \n• In exam, expected to write code involving lists.  \n– Read the reference material and the following slides. Pay attention to the box representation showing what happens in the memory. You must be able to produce such representations.  \n• E.g. see page 13: think about what parts of the drawing are generated (or correspond) to each line of code.  \n• Recommended to read all the reference material. At the very least read and make sure you understand the parts highlighted in the review slides.  \n2  \nGood resources for review  \nIf you did not do it already, solve the Pointer Quiz posted in the Code section.  \nFrom the Stanford CS Education Library:  \n• Pointers and Memory: [http://cslibrary.stanford.edu/102/PointersAndMemory.pdf](http://cslibrary.stanford.edu/102/PointersAndMemory.pdf)[ ](http://cslibrary.stanford.edu/102/PointersAndMemory.pdf)Skim through all and pay special attention to:  \n– Victim & TAB example on page 14  \n– Section 4 (Heap)  \n• Examples on page 28:  \n– middle example- draw the picture after each line in step 2, they show the final picture.  \n» Replace intPtr = malloc()sizeof(int));  \n» With: int * temp = malloc(sizeof(int));  \n» intPtr = temp; // DRAW pictures; Do we need to free intPtr and temp?  \n– Notice the gray arrow in the third example: intPtr still points to a memory location – dangling pointer  \n• Page 30: notice size+1 needed to store a string.  \n• Linked Lists Basics: [http://cslibrary.stanford.edu/103/LinkedListBasics.pdf](http://cslibrary.stanford.edu/103/LinkedListBasics.pdf)  \n– Notice Heap Memory versus Stack Memory  \n– See WrongPush and CorrectPush examples (pages 12-15) .  \n• Throughout our examples,  \n– Think about what data is on the heap and what data is on the stack.  \n– Use drawings to represent the memory and the variables in the program. 3  \nPointer Review – by STUDENT  \n• Pointers and Memory:  \n[http://cslibrary.stanford.edu/102/PointersAndMemory.pdf](http://cslibrary.stanford.edu/102/PointersAndMemory.pdf)  \nConvention: NULL pointer:   \nConvention: bad pointer:   \nPointer, pointee, dereference [a pointer]  \nRead all and pay special attention to:  \n– Pointer representation and assignment: pages 3, 4  \n– Examples in pages 7-8 (especially page 8)  \n– Victim & TAB example on page 14  \n– Section 4 (Heap Memory)  \n• Examples on page 28:  \n– middle example (draw the picture after each line, they show the final picture)  \n– Notice the gray arrow in the third example: intPtr still point to a memory location– dangling pointer  \n• Page 30: notice size+1 needed to store a string.  \nLinked List Review – The Concept  \n• Data structure that holds a collection of objects (kept in nodes) .  \n• Advantages: memory efficient & flexibility for insertions and deletions.  \n• Consists of a sequence of nodes.  \n• Each node stores an object (data) and a link to the next node. (*variations)  \n• The nodes are accessed by following the links (from one node to the next one) .  \n• The list is accessed starting from the first node.  \n• The end is reached when the link to the next object is NULL.  \n• Add a new object:  \n– Create a new node (allocate memory, draw the box),  \n– Populate it (with the object and possibly set the link to NULL),  \n– Update the links to connect it in the list.  \n• Delete an object  \n– Use a temp variable to refere","cbCaitN1xbnm8BdA","https://ap.wps.com/l/cbCaitN1xbnm8BdA","pdf",392097,14,"English","# Linked Lists\n## What to Review\n## Good resources for review\n## Pointer Review - by STUDENT\n## Linked List Review - The Concept\n## Representing a Linked List in C","[{\"question\":\"What pointer concepts should be reviewed before linked lists coding practice?\",\"answer\":\"Review pointer representation and assignment, pointer-related examples (including the heap section), conventions for NULL and bad pointers, and how dangling pointers can occur in code.\"},{\"question\":\"How does the slide describe linked list structure and traversal?\",\"answer\":\"A linked list holds objects in nodes, where each node stores data plus a link to the next node. Traversal starts at the first node and ends when the next link is NULL.\"},{\"question\":\"What C memory and struct details are emphasized for implementing linked lists?\",\"answer\":\"The slides emphasize representing lists as pointers (often to nodes or pointers to nodes), using struct node with a next pointer, understanding heap vs stack memory, and using typedef (e.g., nodePT) to simplify pointer types.\"}]","Elementary Data Structures - Linked Lists - 04_lists_easy_1 | PDF",35,[98,102],{"page_no":22,"url":99,"width":100,"height":101},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8b4e0c445269c56623369588f928333e.webp",983,552,{"page_no":26,"url":103,"width":104,"height":101},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/26e0d2edb24decc443142ee7c5196f52.webp",982,{"code":4,"msg":81,"data":106},[107,111,115,119,124,129,134,137,142,145,149],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Exam",70,"exam",{"id":120,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":122,"slug":123},5,"Comic",60,"comic",{"id":125,"doc_module":4,"doc_module_name":25,"category_name":126,"show_sort_weight":127,"slug":128},6,"Technology",50,"technology",{"id":130,"doc_module":4,"doc_module_name":25,"category_name":131,"show_sort_weight":132,"slug":133},7,"Healthcare",40,"healthcare",{"id":85,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":135,"slug":136},30,"research-report",{"id":138,"doc_module":4,"doc_module_name":25,"category_name":139,"show_sort_weight":140,"slug":141},9,"Religion & Spirituality",20,"religion-spirituality",{"id":140,"doc_module":4,"doc_module_name":25,"category_name":143,"show_sort_weight":140,"slug":144},"World Cup","world-cup",{"id":146,"doc_module":4,"doc_module_name":25,"category_name":147,"show_sort_weight":146,"slug":148},10,"Lifestyle","lifestyle",{"id":150,"doc_module":4,"doc_module_name":25,"category_name":151,"show_sort_weight":120,"slug":152},19,"General","general",{"list":154,"token":11},[155,161,167,173,180,187,194,201,207,213],{"doc_id":156,"doc_title":157,"file_type":89,"home_preview_img_url":158,"slug":159,"view_count":120,"category_name":29,"create_tm":160},467699,"Empirical Evaluation of Unoptimized Sorting Algorithms on 8-Bit AVR Arduino Microcontrollers - Academic Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926500366/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=2uHsDbm6Z9ZJA2bM%2BYqjVnNs1Uo%3D","empirical-evaluation-of-unoptimized-sorting-algorithms-on-8-bit-avr-arduino-microcontrollers-academic-study",1790773220,{"doc_id":162,"doc_title":163,"file_type":89,"home_preview_img_url":164,"slug":165,"view_count":85,"category_name":29,"create_tm":166},689565,"SingCERT - Security Bulletin - March 13, 2024 - Critical Vulnerabilities Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001725397/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=xOnUo3ISLbKL4p6S33vz2mE9eEU%3D","singcert-security-bulletin-march-13-2024-critical-vulnerabilities-overview",1794114478,{"doc_id":168,"doc_title":169,"file_type":89,"home_preview_img_url":170,"slug":171,"view_count":26,"category_name":29,"create_tm":172},698709,"Deterministic Skip Lists - Chapter 43","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010410766/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=nZ6m7tQ2VcoStbimEUGl50aD5hw%3D","deterministic-skip-lists-chapter-43",1794454953,{"doc_id":174,"doc_title":175,"file_type":89,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":29,"create_tm":179},84658,"ETALE: Evolving Topology with Accelerated Lock-free Execution for Dynamic Graph ANN Search on GPUs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809194927/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=IhDmuApOHRJUxEx4%2BvE9MwRxLC8%3D","etale-evolving-topology-with-accelerated-lock-free-execution-for-dynamic-graph-ann-search-on-gpus",27,1784197525,{"doc_id":181,"doc_title":182,"file_type":89,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":29,"create_tm":186},123975,"Towards the genomic sequence code of DNA fragility for machine learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229837062313/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=mMddiXrKkA4dMwPmqUJMptPquYU%3D","towards-the-genomic-sequence-code-of-dna-fragility-for-machine-learning",21,1785819521,{"doc_id":188,"doc_title":189,"file_type":89,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":29,"create_tm":193},82777,"Neuro-Symbolic Reasoning for Vulnerability Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808788660/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=Q%2Fw1IvwSsAo%2B%2FKJdBlhbVxbdtjs%3D","neuro-symbolic-reasoning-for-vulnerability-detection",22,1784182875,{"doc_id":195,"doc_title":196,"file_type":89,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":29,"create_tm":200},82470,"Dual-Informed Vertical Expansion for Multi-Objective Node Selection in Anytime Conflict-Based Search","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808895881/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=mP2Jc%2BjUUrjQfg9l%2BWnED04whf0%3D","dual-informed-vertical-expansion-for-multi-objective-node-selection-in-anytime-conflict-based-search",26,1784180715,{"doc_id":202,"doc_title":203,"file_type":89,"home_preview_img_url":204,"slug":205,"view_count":33,"category_name":29,"create_tm":206},686413,"Optimization of Linked List Prefix Computations on Multithreaded GPUs Using CUDA - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000814225/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=tWe08EYdNdAOFTwrP5UpdxqzDJ0%3D","optimization-of-linked-list-prefix-computations-on-multithreaded-gpus-using-cuda-paper",1794042472,{"doc_id":208,"doc_title":209,"file_type":89,"home_preview_img_url":210,"slug":211,"view_count":33,"category_name":29,"create_tm":212},507880,"Program Nr: 1 - Isolation of a gene for common forms of stroke - presented at the 2002 ASHG Annual Meeting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229934989152/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=7j6YtfJbAbdWrBRWBuz3p4jnZsQ%3D","program-nr-1-isolation-of-a-gene-for-common-forms-of-stroke-presented-at-the-2002-ashg-annual-meeting",1791200805,{"doc_id":214,"doc_title":215,"file_type":89,"home_preview_img_url":216,"slug":217,"view_count":26,"category_name":29,"create_tm":218},697974,"Organizing Data Lists Linearly 2B - Unit02B","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009216942/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110559&Signature=laMwPI1vzu%2BhYjlre5cj5%2Brjnsg%3D","organizing-data-lists-linearly-2b-unit02b",1794446551]