Skip to content

Commit 2a3b013

Browse files
committedMay 25, 2018
Add data-structure complexity table.
1 parent 7bd7f9a commit 2a3b013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ Below is the list of some of the most used Big O notations and their performance
206206
| **Queue** | n | n | 1 | 1 | |
207207
| **Linked List** | n | n | 1 | 1 | |
208208
| **Hash Table** | - | n | n | n | In case of perfect hash function costs would be O(1) |
209-
| **Binary Search Tree** | n | n | n | n | |
209+
| **Binary Search Tree** | n | n | n | n | In case of balanced tree costs would be O(log(n)) |
210210
| **B-Tree** | log(n) | log(n) | log(n) | log(n) | |
211211
| **Red-Black Tree** | log(n) | log(n) | log(n) | log(n) | |
212212
| **AVL Tree** | log(n) | log(n) | log(n) | log(n) | |

0 commit comments

Comments
 (0)
Please sign in to comment.