Sorting algorithms/Comb sort: Difference between revisions
Content added Content deleted
(+Icon+Unicon) |
(+Icon+Unicon headers) |
||
Line 385: | Line 385: | ||
lst combSortInPlace println # ==> list(12, 14, 23, 24, 24, 31, 35, 38, 46, 51, 57, 57, 58, 76, 78, 89, 92, 95, 97, 99)</lang> |
lst combSortInPlace println # ==> list(12, 14, 23, 24, 24, 31, 35, 38, 46, 51, 57, 57, 58, 76, 78, 89, 92, 95, 97, 99)</lang> |
||
== Icon and Unicon == |
|||
==={{header|Icon}}=== |
|||
<lang Icon>procedure main() #: demonstrate various ways to sort a list and string |
<lang Icon>procedure main() #: demonstrate various ways to sort a list and string |
||
demosort(combsort,[3, 14, 1, 5, 9, 2, 6, 3],"qwerty") |
demosort(combsort,[3, 14, 1, 5, 9, 2, 6, 3],"qwerty") |