[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-670584-105":59,"doc-detail-670584-en":130,"doc-similar-670584":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","java-data-structures-cheat-sheet","Java Data Structures Cheat Sheet","","Concise cheat sheet covering core Java data structures and their key characteristics. Includes array fundamentals (indexing behavior, static vs dynamic sizing, and time complexity tradeoffs), singly/doubly/circular linked list variations plus common uses like stacks (LIFO) and queues (FIFO), and hash maps with hashing concepts, collisions, and typical average Big-O costs. Also summarizes binary trees and binary search tree properties, plus breadth-first search basics with definitions, traversal behavior, queue-based implementation details, and efficiency considerations.",{"@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":20,"@type":76,"position":81},"https://docshare.wps.com/document/exam/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/java-data-structures-cheat-sheet/670584/",{"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/java-data-structures-cheat-sheet/670584.png","ImageObject",300,407,{"name":92,"@type":93},"Anna Hans","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-21","2026-11-01",true,{"@type":102,"interactionType":103,"userInteractionCount":44},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What are the main performance characteristics of arrays in this cheat sheet?","Question",{"text":112,"@type":113},"It highlights O(1) indexing for linear and dynamic arrays, O(n) linear search, and O(log n) optimized search. Insertion is O(n), and linear array insertion is not efficient except near the end.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do linked lists support insertion and deletion compared with arrays?",{"text":117,"@type":113},"The sheet notes linked lists are designed to optimize insertion and deletion, with insertion at O(1) and indexing/search at O(n). It also distinguishes singly, doubly, and circular linked list behavior.",{"name":119,"@type":110,"acceptedAnswer":120},"What is hashing in hash maps and how do collisions affect performance?",{"text":121,"@type":113},"Hashing maps a key to an output address via a hash function. The cheat sheet explains collisions occur when distinct inputs yield the same output and suggests accommodating this by using large hash tables, with average Big-O costs of O(1) for indexing, searching, and insertion.","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},670584,1793570142,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":19,"category_name":20,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":44,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":19,"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":52,"preview_page_count":19,"preview_urls":143},5909892332657,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Java Data Structures Cheat Sheet  \n[by](by Ieternalleo via cheatography.com/45716/cs/13401/)[ Ieternalleo](by Ieternalleo via cheatography.com/45716/cs/13401/)[ via](by Ieternalleo via cheatography.com/45716/cs/13401/)[ cheatography.com/45716/cs/13401/](by Ieternalleo via cheatography.com/45716/cs/13401/)  \nArray  \n\n| Definition | -Stores data elements based on an sequential , most commonly 0 based , index. -Based on tuples from set theory. -They are one of the oldest , most commonly used data structures. |\n| --- | --- |\n| Details | -Optimal for indexing; bad at searching , inserting , and deleting (except at the end) . -Linear arrays , or one dimens‐ ional arrays , are the most basic. -Are static in size , meaning that they are declared with a fixed size. -Dynamic arrays are like one dimensional arrays , but have reserved space for additional elements. -If a dynamic array is full , it copies it's contents to a larger array. -Two dimensional arrays have x and y indices like a grid or nested arrays. |\n| Big-O efficiency | - Indexing: Linear array: O(1) , Dynamic array: O(1) -Search: Linear array: O(n) , Dynamic array: O(n) -Optimized Search:\u003Cbr>Linear array: O(log n) , Dynamic array: O(log n) - Insertion: Linear array: n/a Dynamic\u003Cbr>array: O(n) |\n| Linked List |  |\n| \u003Cbr>Definition | \u003Cbr>-Stores data with nodes that point to other nodes. -Nodes , at its most basic it has one datum and one reference (another node) . -A linked list_chains_ nodes together by pointing one node's reference towards another node. |\n\nBy Ieternalleo  \n[cheatography.com/ieternalleo/](cheatography.com/ieternalleo/)  \nLinked List (cont)  \n\n| Details | -Designed to optimize insertion and deletion , slow at indexing and searching. -Doubly linked list has nodes that reference the previous node. -Circularly linked list is simple linked list whose tail , the last node , references the head, the first node. -Stack, commonly implemented with linked lists but can be made from arrays too. -Stacks are last in, first out (LIFO) data structures. -Made with a linked list by having the head be the only place for insertion and removal. -Queues, too can be implem‐ ented with a linked list or an array. -Queues are a first in, first out (FIFO) data structure. -Made with a doubly linked list that only removes from head and adds to tail. |\n| --- | --- |\n| Big-O efficiency | - Indexing: Linked Lists: O(n) -\u003Cbr>Search: Linked Lists: O(n) -Optimized Search: Linked Lists:\u003Cbr>O(n) - Insertion: Linked Lists: O(1) |\n| Hash Map |  |\n| \u003Cbr>Definition | \u003Cbr>-Stores data with key value pairs. -Hash functions accept a key and return an output unique only to that specific key.\u003Cbr>-This is known as hashing, which is the concept that an input and an output have a one-to-one correspondence to map information. -Hash functions return a unique address in memory for that data. |\n\nPublished 6th November, 2017. Last updated 6th November, 2017. Page 1 of 4.  \nHash Map (cont)  \n\n| Details | -Designed to optimize searching , insertion , and deletion. -Hash collisions are when a hash function returns the same output for two distinct inputs. -All hash functions have this problem. -This is often accommodated for by having the hash tables be very large. -Hashes are important for associative arrays and database indexing. |\n| --- | --- |\n| Big-O | - Indexing: Hash Tables: O(1) - |\n| efficiency | Search: Hash Tables: O(1) -\u003Cbr>Insertion: Hash Tables: O(1) |\n|  |  |\n| Binary Tree |  |\n| Definition - Is a tree like data structure where every node has at most two children. -There is one left\u003Cbr>and right child node. |  |\n|  |  |\n\nSponsored by Readable.com Measure your website readability!  \n[https://readable.com](https://readable.com)  \nJava Data Structures Cheat Sheet  \n[by](by Ieternalleo via cheatography.com/45716/cs/13401/)[ Ieternalleo](by Ieternalleo via cheatography.com/45716/cs/13401/)[ via](by Ieternalleo via cheatography.com/45716/cs/13401/)[ cheatography.com/45716/cs/13401/](by Ieternalleo via chea","cbCaipavVs29Ubfj","https://ap.wps.com/l/cbCaipavVs29Ubfj","pdf",56678,"English","# Array\n# Linked List\n# Hash Map\n# Binary Tree\n# Search Basics\n## Breadth First Search","[{\"question\":\"What are the main performance characteristics of arrays in this cheat sheet?\",\"answer\":\"It highlights O(1) indexing for linear and dynamic arrays, O(n) linear search, and O(log n) optimized search. Insertion is O(n), and linear array insertion is not efficient except near the end.\"},{\"question\":\"How do linked lists support insertion and deletion compared with arrays?\",\"answer\":\"The sheet notes linked lists are designed to optimize insertion and deletion, with insertion at O(1) and indexing/search at O(n). It also distinguishes singly, doubly, and circular linked list behavior.\"},{\"question\":\"What is hashing in hash maps and how do collisions affect performance?\",\"answer\":\"Hashing maps a key to an output address via a hash function. The cheat sheet explains collisions occur when distinct inputs yield the same output and suggests accommodating this by using large hash tables, with average Big-O costs of O(1) for indexing, searching, and insertion.\"}]","Java Data Structures Cheat Sheet | PDF",[144,148,152,156],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b2c74a8a1c93446daaf2393ce6f151e6.webp",983,1390,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6ed4b13f13e4eca46305c4b106c37903.webp",982,1389,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7e342b6704e71ed99229efc3ed92347d.webp",981,1387,{"page_no":19,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/71685ab7fe33b029449505afcf7c9da8.webp",980,1386,{"list":161,"token":66},[162,168,174,180,187,194,201,208,214,220],{"doc_id":163,"doc_title":164,"file_type":137,"home_preview_img_url":165,"slug":166,"view_count":44,"category_name":20,"create_tm":167},685793,"1.4.2 Data Structures - Specification - 1.4.2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000212437/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=7GN9lidcVyHQONDBq7Vjc%2FrM37w%3D","142-data-structures-specification-142",1794018669,{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":34,"category_name":20,"create_tm":173},697967,"Data Structures Using Python - Course Syllabus - Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010146279/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=gyKCpjgJ1W0HrkdUAOFGSamAEr4%3D","data-structures-using-python-course-syllabus-lecture-notes",1794446538,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":39,"category_name":20,"create_tm":179},391129,"3 Technical Interview Questions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917647861/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=mdka0doXLVac4yKWLRGhhLKXaFM%3D","3-technical-interview-questions",1790349563,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":20,"create_tm":186},391873,"Interview Cheat Sheet - From Andrei Neagoie's Master The Coding Interview - Data Structures + Algorithms","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917709651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=DTn0do9EBlOa4HqqTzzWancJVHs%3D","interview-cheat-sheet-from-andrei-neagoies-master-the-coding-interview-data-structures-algorithms",14,1790359647,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":20,"create_tm":193},458254,"AP Computer Science AB - Syllabus - Course Overview and Unit Outline","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925410280/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=9JyDUAS%2Bi5kG5ACSQRcQPHnmQbM%3D","ap-computer-science-ab-syllabus-course-overview-and-unit-outline",25,1790752341,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":199,"category_name":20,"create_tm":200},311479,"The AP Computer Science Principles Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907320742/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=D9P32zGcpZNa20aailieQ90IjnE%3D","the-ap-computer-science-principles-cheat-sheet",16,1789894344,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":20,"create_tm":207},316816,"CS400 Practice Exam - Part 1 Multiple Choice","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229908162377/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=6C8A836AeayDGJaEJjiMfVh7I54%3D","cs400-practice-exam-part-1-multiple-choice",53,1789924416,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":34,"category_name":20,"create_tm":213},551208,"Grade 4 Vocabulary - Word Search Worksheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947152051/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=JE7rNTjZ1UNP9D0CI3IHAMdvYLA%3D","grade-4-vocabulary-word-search-worksheet",1791787093,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":52,"category_name":20,"create_tm":219},314691,"AP Computer Science Principles Session 1 - MCQ","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907676719/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=9aqBWqOaLoPN24lE0RBdeIMPnxE%3D","ap-computer-science-principles-session-1-mcq",1789901650,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":225,"category_name":20,"create_tm":226},30189,"MAHAJYOTI BARTI SARTHI TRTI MPSC CET 2024 Question Paper with Solutions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229724648473/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796167619&Signature=KpYkuAxDNTWNqXuyeQ7ryL7Spyc%3D","mahajyoti-barti-sarthi-trti-mpsc-cet-2024-question-paper",6715,1778285986]