Skip to content

Commit aad3c4d

Browse files
committed
Cocktail Shaker Sort | Improved Description Comment
1 parent 7a050ab commit aad3c4d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sorts/CocktailShakerSort.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/*
2-
* Cocktail shaker sort is a sort algorithm that is a bidirectional bubble sort
2+
* Cocktail Shaker Sort is an algorithm that is a Bidirectional Bubble Sort.
3+
* The algorithm extends bubble sort by operating in two directions.
4+
* While it improves on bubble sort by more quickly moving items to the beginning of the list,
5+
* it provides only marginal performance improvements.
36
* more information: https://en.wikipedia.org/wiki/Cocktail_shaker_sort
47
* more information: https://en.wikipedia.org/wiki/Bubble_sort
58
*

0 commit comments

Comments
 (0)