[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-671623-105":59,"doc-detail-671623-en":130,"doc-similar-671623":152},{"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","data-structures-cheat-sheet-time-complexity-and-core-properties","Data Structures Cheat Sheet - Time Complexity and Core Properties","","Concise cheat sheet for data structures used in coding interviews and computer science study. Summarizes common operations and their Big-O time complexities across arrays, dynamic arrays, linked lists, queues, stacks, hash tables, binary search trees, tries, heaps, priority queues, and bloom filters. Includes brief intuition-based explanations and examples for LRU cache, graph, and hierarchical structures, emphasizing typical performance characteristics for lookups, inserts, and deletions.",{"@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/data-structures-cheat-sheet-time-complexity-and-core-properties/671623/",{"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/data-structures-cheat-sheet-time-complexity-and-core-properties/671623.png","ImageObject",300,407,{"name":92,"@type":93},"Aran","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-08","2026-11-02",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},"Which data structures are summarized on the cheat sheet?","Question",{"text":112,"@type":113},"It covers arrays, dynamic arrays, linked lists, queues, stacks, hash tables, binary search trees, tries, heaps, priority queues, bloom filters, plus brief notes on LRU cache, tree, and graph.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What does the cheat sheet focus on for each data structure?",{"text":117,"@type":113},"It emphasizes core properties and the Big-O time complexity of common operations such as indexing/searching, insertion, and deletion.",{"name":119,"@type":110,"acceptedAnswer":120},"How does the cheat sheet help with coding interviews?",{"text":121,"@type":113},"It provides a quick reference to estimate performance trade-offs when choosing a data structure for a problem, including typical best/average behaviors like O(lg n) for balanced BST lookups.","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},671623,1793577648,{"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":14,"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":24,"preview_page_count":14,"preview_urls":143},137455076865,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","|  Interview Cake by Aced |  |  |  |  |\n| --- | --- | --- | --- | --- |\n| Data Structures Cheat Sheet\u003Cbr>For coding interviews or computer science classes\u003Cbr>A quick reference of the big O costs and core properties of every data structure.\u003Cbr>Time Complexity of Common Operations\u003Cbr>index search insert |  |  |  | delete |\n| Array | \u003Cbr>O (1) | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (n) |\n| Dynamic Array | \u003Cbr>O (1) | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (n) |\n| Linked List | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (1) |\n| Queue | \u003Cbr>O (1) | \u003Cbr>O (n) | \u003Cbr>O (1) | \u003Cbr>O (1) |\n| Stack | \u003Cbr>O (1) | \u003Cbr>O (n) | \u003Cbr>O (1) | \u003Cbr>O (1) |\n| Hash Table | — | \u003Cbr>O (1) | \u003Cbr>O (1) | \u003Cbr>O (1) |\n| Binary Search Tree | \u003Cbr>O (lg n) | \u003Cbr>O (lg n) | \u003Cbr>O (lg n) | \u003Cbr>O (lg n) |\n| Trie | — | \u003Cbr>O (m) | \u003Cbr>O (m) | \u003Cbr>O (m) |\n| Heap | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (lg n) | \u003Cbr>O (n) |\n| Priority Queue | \u003Cbr>O (n) | \u003Cbr>O (n) | \u003Cbr>O (lg n) | \u003Cbr>O (1) |\n| Bloom filter | — | \u003Cbr>O (1) | \u003Cbr>O (1) | — |\n\nLRU Cache —  O (1)   \nArray  \nStores things in order. Has quick lookups by index.  \n0  \n1  \n2  \n3  \n4  \n5  \n\n| a |\n| --- |\n| b |\n| c |\n| d |\n| e |\n| f |\n\nQueue  \nLike the line outside a busy restaurant. \"First come, first served.\"  \nDynamic Array  \nAn array that automatically grows as you add more items.  \ncapacity: 6  \n0  \n1  \n2  \n3  \n4  \n 5  \n\n| a |\n| --- |\n| b |\n| c |\n|  |\n|  |\n|  |\n\nsize: 3  \nStack  \nLike a stack of dirty plates in the sink. The first one you take off the top is the last one you put down.  \nO (1)   O (1)   \nLinked List  \nAlso stores things in order. Faster insertionsand deletions than arrays, but slower lookups (you have to \"walk down\" the whole list) .  \na  \nb  \nc  \nd  \nHash Table  \nLike an array, except instead of indices you can set arbitrary keys for each value.  \n“apple”“cherry”  \n“ ”  \npecan  \n“blueberry”  \n\n| 4 |\n| --- |\n| 2 |\n| 5 |\n| 1 |\n\n[www.interviewcake.com/data-structures-reference](www.interviewcake.com/data-structures-reference) · page 1 of 2  \nTree  \nGood for storing hierarchies. Each node can have \"child\" nodes.  \na  \nb c  \nd e f g  \nh i  \nTrie  \nStores a set of strings in a big tree of characters. Good for lookups by prefix. Sometimes saves space.  \nP  \nO A  \nT S R  \nT S T  \nBloomfilter  \nA constant-space bitmap that lets you quickly check whether or not an item is in a set. Can give false positives.  \nhash(\"lemon\") % 8 = 2  \n0 1 2 3 4 5 6 7  \n| 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 |\n| --- | --- | --- | --- | --- | --- | --- | --- |\n\nNot present.  \nBinary Search Tree  \nEverything in the left subtree is smaller than the current node, everything in the right subtree is larger. O (lg n) lookups, but only if the tree is balanced!  \nHeap  \nA binary tree where the smallest value is always at the top. Use it to implement a priority queue.  \nLRU Cache  \nLets you quickly identify which item hasn't been used for the longest amount of time.  \nmost recently used  \nleast recently used  \nHead  \nTail  \nGraph  \nGood for storing networks, geography, social relationships, etc.  \nPriority Queue  \nA queue where items are ordered by priority.  \nBack Front  \n[Latest version:](Latest version: www.interviewcake.com/data-structures-reference)[ www.interviewcake.com/data-structures-reference](Latest version: www.interviewcake.com/data-structures-reference) · More free coding interview prep [at](at www.interviewcake.com)[ www.interviewcake.com](at www.interviewcake.com)  \n[www.interviewcake.com/data-structures-reference](www.interviewcake.com/data-structures-reference) · page 2 of 2","cbCaieH4awoOjZaf","https://ap.wps.com/l/cbCaieH4awoOjZaf","pdf",201748,"English","# Time Complexity of Common Operations\n## Array and Dynamic Array\n## Linked List, Queue, and Stack\n## Hash Table, Binary Search Tree, and Trie\n## Heap, Priority Queue, and Bloom Filter\n## LRU Cache, Tree, and Graph","[{\"question\":\"Which data structures are summarized on the cheat sheet?\",\"answer\":\"It covers arrays, dynamic arrays, linked lists, queues, stacks, hash tables, binary search trees, tries, heaps, priority queues, bloom filters, plus brief notes on LRU cache, tree, and graph.\"},{\"question\":\"What does the cheat sheet focus on for each data structure?\",\"answer\":\"It emphasizes core properties and the Big-O time complexity of common operations such as indexing/searching, insertion, and deletion.\"},{\"question\":\"How does the cheat sheet help with coding interviews?\",\"answer\":\"It provides a quick reference to estimate performance trade-offs when choosing a data structure for a problem, including typical best/average behaviors like O(lg n) for balanced BST lookups.\"}]","Data Structures Cheat Sheet - Time Complexity and Core Properties | PDF",[144,148],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/4f927fe04135e7b2f9651567be45e51d.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5c6c78d4ecfa9f291cc60e25b37c0831.webp",982,1270,{"list":153,"token":66},[154,160,167,173,180,186,192,198,205,211],{"doc_id":155,"doc_title":156,"file_type":137,"home_preview_img_url":157,"slug":158,"view_count":14,"category_name":30,"create_tm":159},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=1796111999&Signature=vzVA%2BJo3awVcq3uwjWoVuHKUSJk%3D","elements-of-programming-interviews-the-insiders-guide-sampling",1794854118,{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":165,"category_name":30,"create_tm":166},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=1796111999&Signature=L4ogzqcIKeu3K4NToCACEv1QmAs%3D","a-container-library-for-c-a-c-container-library-overview",14,1790846909,{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":34,"category_name":30,"create_tm":172},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":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":30,"create_tm":179},403651,"Week 1 - Programming Fundamentals - Basics & Conditionals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229920231890/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=FSxD2oXT%2B35K%2F3H6Uam5Z%2F5nrtk%3D","week-1-programming-fundamentals-basics-conditionals",15,1790542223,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":44,"category_name":30,"create_tm":185},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=1796111999&Signature=OdcJZ1sJTC9S3xFEewFSJcDGh6A%3D","data-structures-using-python-r20a0503-lecture-notes",1794446274,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":19,"category_name":30,"create_tm":191},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=1796111999&Signature=Sn6MhfobxOSW1l%2Fg1ln347LcT8E%3D","data-structures-chapter-5-basic-data-structures",1794446352,{"doc_id":193,"doc_title":194,"file_type":137,"home_preview_img_url":195,"slug":196,"view_count":14,"category_name":30,"create_tm":197},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=1796111999&Signature=st%2BltX%2FBws3hPBnwchhpWcwocYU%3D","chapter-9-data-structures-linked-lists-objectives-self-referential-classes",1795006745,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},657557,"Data Structure Diagrams in Typst - CS240E S25 Solara Lin","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975559130/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=zZMYtXcQ%2F2Kuq7jZ0ghPhbPgBw4%3D","data-structure-diagrams-in-typst-cs240e-s25-solara-lin",12,1792982817,{"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},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=1796111999&Signature=DS1g1QwifagHO%2FTXQnkHWJUtpe4%3D","cheatcode-book-how-to-prepare-for-interviews",1794446344,{"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},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=1796111999&Signature=FDsiHrxnbepZ5RRNebbHxSWESzs%3D","unit-i-introduction-to-data-structures-and-linear-data-structures",1794017620]