Sorting algorithms/Cocktail sort: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: changed wording in the section headers.)
m (added a related task.)
Line 27: Line 27:
'''while''' swapped; ''// if no elements have been swapped,''
'''while''' swapped; ''// if no elements have been swapped,''
''// then the list is sorted''
''// then the list is sorted''

;Related task:
:*   [https://rosettacode.org/wiki/Sorting_algorithms/Cocktail_sort_with_shifting_bounds cocktail sort with shifting bounds]
<br><br>


=={{header|360 Assembly}}==
=={{header|360 Assembly}}==