Skip to content

Commit b99c037

Browse files
committed
update README.markdown
1 parent b2f8a16 commit b99c037

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Bubble Sort/README.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Bubble Sort
22

3-
Bubble sort is a sorting algorithm that is implemented by starting in the beginning of the array and swapping the first two elements only if the first element is greater than the second element. This comparison is then moved onto the next pair and so on and so forth. This is done until the the array is completely sorted. The smaller items slowly “bubble” up to the beginning of the array.
3+
Bubble sort is a sorting algorithm that is implemented by starting in the beginning of the array and swapping the first two elements only if the first element is greater than the second element. This comparison is then moved onto the next pair and so on and so forth. This is done until the array is completely sorted. The smaller items slowly “bubble” up to the beginning of the array.
44

55
##### Runtime:
6-
- Average: O(N^2)
6+
- Average: O(N^2)
77
- Worst: O(N^2)
88

9-
##### Memory:
9+
##### Memory:
1010
- O(1)
1111

1212
### Implementation:
1313

14-
The implementation will not be shown because as you can see from the average and worst runtimes this is a very inefficient algorithm but having a grasp of the concept will help in getting to know the basics of simple sorting algorithms.
14+
The implementation will not be shown as the average and worst runtimes show that this is a very inefficient algorithm. However, having a grasp of the concept will help you understand the basics of simple sorting algorithms.

0 commit comments

Comments
 (0)