[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-697952-105":59,"doc-detail-697952-en":130,"doc-similar-697952":160},{"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","python-session-2-data-structures","Python Session 2 - Data Structures","","Python Session #2: Data Structures explains what data structures are and why they matter for organizing and efficiently accessing information inside programs. It introduces common types such as arrays, lists, stacks, queues, trees, graphs, and hash tables, then contrasts arrays and linked lists through memory allocation, size, access time, and memory efficiency. The session also covers fundamental operations for data structures—insert, delete, retrieve, update—as well as checks like IsEmpty and Length, with examples framed around Python lists and spreadsheet-style memory.",{"@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/python-session-2-data-structures/697952/",{"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/python-session-2-data-structures/697952.png","ImageObject",300,407,{"name":92,"@type":93},"Fishy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are data structures, in simple terms?","Question",{"text":112,"@type":113},"Data structures are the fundamental building blocks of computer programming that define how data is organized, stored, and manipulated efficiently within a program.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do arrays and linked lists differ?",{"text":117,"@type":113},"Arrays use contiguous memory with fixed size and O(1) access time, while linked lists use non-contiguous memory with dynamic size and O(n) linear access time due to pointers.",{"name":119,"@type":110,"acceptedAnswer":120},"What are the key methods/functions of data structures?",{"text":121,"@type":113},"They commonly include insertion, deletion, retrieval (by index or specific element), update, and utility checks like IsEmpty and Length.","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},697952,1794446325,{"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":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},14431098389841,"https://eur-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Python Session \\#2:  \nData Structures  \nCREEDS 2024  \nWhat are Data Structures?  \n• Aside from one of the hardest classes in a CS curriculum…  \n• Data structures:  \n• They are the fundamental building blocks of computer programming.  \n• They define how data is organized, stored, and manipulated within a program efficiently.  \n• Common data structures include:  \n• Arrays, Lists, Stacks, Queues, Trees, Graphs, Hash Tables…  \nWhat are Data Structures?  \n• In simpler terms:  \nData Structures is a box for boxes  \nWhy are they useful?  \nWhy are they useful?  \n• Because other than storing and organizing data, they are an abstraction that gives us ”easy” access to manage it.  \n• If you have pieces of data/information that are familiar (this might go into object programming so it is easier to understand)  \n• “Manipulation of vast amounts of data is simple when a proper data structure technique is used.”  \n• What if all your student's grades where in independent “Word” files instead of an ”Excel” file.  \nFundamental Data Structures  \n| Feature | Array | Linked List |\n| --- | --- | --- |\n| Memory Allocation | Contiguous block of memory | Non-contiguous, each element points to the next |\n| Size | Fixed size, must be declared upfront | Dynamic size |\n| Access Time | Constant time O(1) for accessing elements | Linear time O(n) for accessing elements |\n| Memory Efficiency | More memory efficient (no pointers) | Less memory efficient (extra memory for pointers) |\n| Examples (Java) | int[] numbers = new int[5]; | LinkedList\u003CInteger> list = new LinkedList\u003C>(); |\n\nIn Python everything is a List  \nFundamental Data Structures  \n• Let’s use excel to show how these work!  \n• Let's assume that these spreadsheets are the memory.  \n• Each cell saves some information  \n• For these example lets not worry about the space that each space represents  \n• Color the space that you will use (mark the lines)  \n• Use another color to highlight continuos space  \n• That is an array  \n• Use the “=” to point to another cell That is a linked list  \nKnowledge Break  \nLet's take a breather. Questions?  \nData Structures Function  \n• Normally Data Structures have three key methods  \n• Insertion: Insert an element  \n• Deletion: Remove/Delete an element  \n• Retrieval: (also search/extraction/get) Retrieve data  \n• Retrieval can be based on:  \n• Index  \n• Specific element  \n• Update: Updating/Setting a value. Is similar to retrieval since you first need to locate the element to change  \n• IsEmpty: Checks if the data structure has any elements  \n• Length: How many elements in the structure.","cbCaimvXUsNcoyYA","https://ap.wps.com/l/cbCaimvXUsNcoyYA","pdf",587652,32,"English","# What are Data Structures?\n## Why are they useful?\n## Fundamental Data Structures\n## In Python everything is a List\n# Knowledge Break\n# Data Structures Function","[{\"question\":\"What are data structures, in simple terms?\",\"answer\":\"Data structures are the fundamental building blocks of computer programming that define how data is organized, stored, and manipulated efficiently within a program.\"},{\"question\":\"How do arrays and linked lists differ?\",\"answer\":\"Arrays use contiguous memory with fixed size and O(1) access time, while linked lists use non-contiguous memory with dynamic size and O(n) linear access time due to pointers.\"},{\"question\":\"What are the key methods/functions of data structures?\",\"answer\":\"They commonly include insertion, deletion, retrieval (by index or specific element), update, and utility checks like IsEmpty and Length.\"}]","Python Session 2 - Data Structures | PDF",81,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/fde758e07ac27c14aad89af9290dc317.webp",983,552,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/73918e92d17a657b468845d0f80a7fef.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/b02a508220e855c935ad12c202f15cbb.webp",981,551,{"page_no":19,"url":158,"width":159,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/8f5028093a5783b01e9aebdb2fcbc943.webp",980,{"list":161,"token":66},[162,168,174,180,187,193,199,205,211,217],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":81,"category_name":30,"create_tm":167},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=1796111939&Signature=P0pfdJijbTCiktS%2FFa3pFpLmb%2FM%3D","data-structures-cheat-sheet-time-complexity-and-core-properties",1793577648,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":44,"category_name":30,"create_tm":173},697948,"Data Structures Using Python - R20A0503 - Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141008/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=KwJFbH5CvTLJktT8XkWPsFT0qsY%3D","data-structures-using-python-r20a0503-lecture-notes",1794446274,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":19,"category_name":30,"create_tm":179},697962,"DATA STRUCTURES - Chapter 5 Basic Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009214987/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=kg6G7FA0XyoSkC8SKyMAKyUhgAY%3D","data-structures-chapter-5-basic-data-structures",1794446352,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":30,"create_tm":186},491210,"A container library for C - A C container library overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229928140490/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=WFR8AIcPrghxKTgf0%2F2MhpgX6BQ%3D","a-container-library-for-c-a-c-container-library-overview",14,1790846909,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":81,"category_name":30,"create_tm":192},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=1796111939&Signature=q3bFU5%2Fm45sTWvQLPI4eZdZKvD8%3D","linked-lists-chapter-3-overview",1794016986,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":14,"category_name":30,"create_tm":198},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=1796111939&Signature=x5kXEnLYBdbSmIfYNCyWtM0lZZA%3D","chapter-9-data-structures-linked-lists-objectives-self-referential-classes",1795006745,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":14,"category_name":30,"create_tm":204},718148,"Elements of Programming Interviews - The Insiders' Guide - Sampling","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230018609156/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=KFiqcoPUhPoKiGk%2FE%2BkF%2Bk6pPNw%3D","elements-of-programming-interviews-the-insiders-guide-sampling",1794854118,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":24,"category_name":30,"create_tm":210},685756,"UNIT- I - Introduction to Data Structures and Linear Data Structures","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000192540/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=GHJyohzkHDwYfZuxJHkLFeaqzys%3D","unit-i-introduction-to-data-structures-and-linear-data-structures",1794017620,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":24,"category_name":30,"create_tm":216},697959,"Cheatcode-Book - How to Prepare for Interviews","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010142285/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=HzypB%2BndEg43sfiinOnabPM%2FKto%3D","cheatcode-book-how-to-prepare-for-interviews",1794446344,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":29,"category_name":30,"create_tm":222},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=1796111939&Signature=XJfin6fy1jXz61AexXsBNTFVPGY%3D","data-structures-linked-list-unit-3",1794016973]