mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-10 11:09:43 +08:00
Add quick sort.
This commit is contained in:
parent
dfdd1ac58a
commit
804f50bbed
14
README.md
14
README.md
@ -89,17 +89,7 @@ Below is the list of some of the most used Big O notations and their performance
|
||||
| **O(2^N)** | 1024 | 1.26e+29 | 1.07e+301 |
|
||||
| **O(N!)** | 3628800 | 9.3e+157 | 4.02e+2567 |
|
||||
|
||||
### Common Data Structure Operations Complexity
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>One</td>
|
||||
<td>Two</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">Three</td>
|
||||
</tr>
|
||||
</table>
|
||||
### Data Structure Operations Complexity
|
||||
|
||||
| Data Structure | Access | Search | Insertion | Deletion |
|
||||
| ----------------------- | :-------: | :-------: | :-------: | :-------: |
|
||||
@ -107,7 +97,7 @@ Below is the list of some of the most used Big O notations and their performance
|
||||
| **Stack** | n | n | 1 | 1 |
|
||||
| **Queue** | n | n | 1 | 1 |
|
||||
| **Linked List** | n | n | 1 | 1 |
|
||||
| **Hash Table** | | n | n | n |
|
||||
| **Hash Table** | - | n | n | n |
|
||||
| **Binary Search Tree** | n | n | n | n |
|
||||
| **B-Tree** | log(n) | log(n) | log(n) | log(n) |
|
||||
| **Red-Black Tree** | log(n) | log(n) | log(n) | log(n) |
|
||||
|
Loading…
Reference in New Issue
Block a user