Big O Flashcards
Array average access time complexity
O(1)
Array List average search time complexity
O(n)
Array average insertion time complexity
O(n)
Array average deletion time complexity
O(n)
Array worst access time complexity
O(1)
Array worst search time complexity
O(n)
Array worst insertion time complexity
O(n)
Array worst deletion time complexity
O(n)
Array worst space time complexity
O(n)
Stack average access time complexity
O(n)
Stack List average search time complexity
O(n)
Stack average insertion time complexity
O(1)
Stack average deletion time complexity
O(1)
Stack worst access time complexity
O(n)
Stack worst search time complexity
O(n)
Stack worst insertion time complexity
O(1)
Stack worst deletion time complexity
O(1)
Stack worst space time complexity
O(n)
Queue average access time complexity
O(n)
Queue average search time complexity
O(n)
Queue average insertion time complexity
O(1)
Queue average deletion time complexity
O(1)
Queue worst access time complexity
O(n)
Queue worst search time complexity
O(n)
Queue worst insertion time complexity
O(1)
Queue worst deletion time complexity
O(1)
Queue worst space time complexity
O(n)
Singly-Linked List average access time complexity
O(n)
Singly-Linked List average search time complexity
O(n)
Singly-Linked List average insertion time complexity
O(1)
Singly-Linked List average deletion time complexity
O(1)
Singly-Linked List worst access time complexity
O(n)
Singly-Linked List worst search time complexity
O(n)
Singly-Linked List worst insertion time complexity
O(1)
Singly-Linked List worst deletion time complexity
O(1)
Singly-Linked List worst space time complexity
O(n)
Doubly-Linked List average access time complexity
O(n)
Doubly-Linked List average search time complexity
O(n)
Doubly-Linked List average insertion time complexity
O(1)
Doubly-Linked List average deletion time complexity
O(1)
Doubly-Linked List worst access time complexity
O(n)
Doubly-Linked List worst search time complexity
O(n)
Doubly-Linked List worst insertion time complexity
O(1)
Doubly-Linked List worst deletion time complexity
O(1)
Doubly-Linked List worst space time complexity
O(n)
Skip List average access time complexity
O(log(n))
Skip List average search time complexity
O(log(n))
Skip List average insertion time complexity
O(log(n))