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
c8becaf299
commit
278ca89aa1
@ -104,5 +104,3 @@ Source: [Big O Cheat Sheet](http://bigocheatsheet.com/).
|
||||
| **Heap sort** | n log(n) | n log(n) | n log(n) | 1 | No |
|
||||
| **Merge sort** | n log(n) | n log(n) | n log(n) | n | Yes |
|
||||
| **Quick sort** | n log(n) | n log(n) | n^2 | log(n) | No |
|
||||
| **Radix sort** | nk | nk | nk | n + k | |
|
||||
| **Bucket sort** | n + k | n + k | n^2 | n | |
|
||||
|
Loading…
Reference in New Issue
Block a user