One Pager Cheat Sheet
- This cheat sheet provides a quick summary of time complexity of common array operations and a reminder on Big O notation.
- A
Dynamic array, also known as anarray list,list,growable array,resizable array,mutable arrayordynamic table, is a type of array that can resize itself and provides constant time access withO(n)worst-case insertion (append) and deletion. - A Linked List is a linear collection of elements ordered by links instead of physical placement in memory, featuring
optimizedoperations forinsertionanddeletionbut withcostly access and searchtime complexity. - A Queue is a
FIFOdata structure usually implemented on top of a linked list forO(1)enqueuinganddequeuing. - A Stack is a sequential collection where elements are added and removed from the same end, making insertions and deletions
O(1)but access and searchO(n). - A
hash tableis an unordered collection that mapskeystovaluesusinghashingfor quicksearch,insertionanddeletionwithaveragetime complexityO(1). - A Graph is a data structure that stores items in a connected, non-hierarchical network, connected by
edges, which can be directed or undirected, cyclic or acyclic, and weighted or unweighted. - A
Treeis a hierarchical data structure composed of nodes connected through links, which can be used for indexing files, syntax trees, comment threads, and more, withO(log(n))average time complexity for most operations. - A
Binary Search Treeis a kind of binary tree where nodes to the left are smaller, and nodes to the right are larger than the current node.


