mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-11-14 06:52:59 +08:00
Add big O sheet for sorting algorithms.
This commit is contained in:
parent
43353cd17c
commit
468bf4a37d
@ -96,7 +96,5 @@ Source: [Big O Cheat Sheet](http://bigocheatsheet.com/).
|
|||||||
Source: [Big O Cheat Sheet](http://bigocheatsheet.com/).
|
Source: [Big O Cheat Sheet](http://bigocheatsheet.com/).
|
||||||
|
|
||||||
| Name | Best | Average | Worst | Memory | Stable | Method | Notes |
|
| Name | Best | Average | Worst | Memory | Stable | Method | Notes |
|
||||||
| ------------------| ------- | --------- | ------- | --------- | --------- | ------------- | --------------- |
|
| ------------------| :-----: | :-------: | :-----: | :-------: | :-------: | :------------ | :-------------- |
|
||||||
| **Bubble sort** | _n_ | _n^2_ | _n^2_ | _1_ | _Yes_ | _Exchanging_ | Tiny code size. |
|
| **Bubble sort** | n | n^2 | n^2 | 1 | Yes | Exchanging | Tiny code size. |
|
||||||
|
|
||||||
<span color="red">test</span>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user