From 468bf4a37dc06d9247e27300d3f431fd91280997 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Fri, 13 Apr 2018 06:35:56 +0300 Subject: [PATCH] Add big O sheet for sorting algorithms. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8099bfc9..a5657673 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,5 @@ Source: [Big O Cheat Sheet](http://bigocheatsheet.com/). Source: [Big O Cheat Sheet](http://bigocheatsheet.com/). | Name | Best | Average | Worst | Memory | Stable | Method | Notes | -| ------------------| ------- | --------- | ------- | --------- | --------- | ------------- | --------------- | -| **Bubble sort** | _n_ | _n^2_ | _n^2_ | _1_ | _Yes_ | _Exchanging_ | Tiny code size. | - -test +| ------------------| :-----: | :-------: | :-----: | :-------: | :-------: | :------------ | :-------------- | +| **Bubble sort** | n | n^2 | n^2 | 1 | Yes | Exchanging | Tiny code size. |