Skip to content

Commit 1f15eda

Browse files
committed
Fixed error in description
1 parent 319f94d commit 1f15eda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Comb Sort/README.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ This will sort the values of the array into ascending order -- increasing in val
6464
## Performance
6565

6666
Comb Sort was created to improve upon the worst case time complexity of Bubble Sort. With Comb
67-
Sort, the worst case scenario for performance is exponential -- O(n^2). At best though, Comb Sort
68-
performs at O(n logn) time complexity. This creates a drastic improvement over Bubble Sort's performance.
67+
Sort, the worst case scenario for performance is polynomial -- O(n^2). At best though, Comb Sort
68+
performs at O(n logn) time complexity -- loglinear. This creates a drastic improvement over Bubble Sort's performance.
6969

7070
Similar to Bubble Sort, the space complexity for Comb Sort is constant -- O(1).
7171
This is extremely space efficient as it sorts the array in place.

0 commit comments

Comments
 (0)