diff --git a/README.md b/README.md index cef736c..d461017 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ *pop*, which removes the most recently added element * **Last in, first out data structure (LIFO)**: the most recently added object is the first to be removed * Time Complexity: - * Access: `O(n)` + * Access: `O(1)` * Search: `O(n)` * Insert: `O(1)` * Remove: `O(1)` @@ -30,7 +30,7 @@ into the queue, and *dequeue*, which removes an element from the queue * **First in, first out data structure (FIFO)**: the oldest added object is the first to be removed * Time Complexity: - * Access: `O(n)` + * Access: `O(1)` * Search: `O(n)` * Insert: `O(1)` * Remove: `O(1)`