Skip to content

Commit 5dbb739

Browse files
committed
Cocktail Shaker Sort | Formatted Wikipedia Link
1 parent aad3c4d commit 5dbb739

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sorts/CocktailShakerSort.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* The algorithm extends bubble sort by operating in two directions.
44
* While it improves on bubble sort by more quickly moving items to the beginning of the list,
55
* it provides only marginal performance improvements.
6-
* more information: https://en.wikipedia.org/wiki/Cocktail_shaker_sort
7-
* more information: https://en.wikipedia.org/wiki/Bubble_sort
6+
*
7+
* Wikipedia (Cocktail Shaker Sort): https://en.wikipedia.org/wiki/Cocktail_shaker_sort
8+
* Wikipedia (Bubble Sort): https://en.wikipedia.org/wiki/Bubble_sort
89
*
910
*/
1011
function cocktailShakerSort (items) {

0 commit comments

Comments
 (0)