Sorting algorithms/Heapsort: Difference between revisions
Content added Content deleted
m (→Icon and Unicon: header simplification) |
|||
Line 778: | Line 778: | ||
[[2,13],[5],[6,8,14,9],[6,9],[10,7]]</lang> |
[[2,13],[5],[6,8,14,9],[6,9],[10,7]]</lang> |
||
== |
=={{header|Icon}} and {{header|Unicon}}== |
||
==={{header|Icon}}=== |
|||
<lang Icon> |
<lang Icon> |
||
procedure main() #: demonstrate various ways to sort a list and string |
procedure main() #: demonstrate various ways to sort a list and string |
||
Line 833: | Line 832: | ||
on string : "qwerty" |
on string : "qwerty" |
||
with op = &null: "eqrtwy" (0 ms)</pre> |
with op = &null: "eqrtwy" (0 ms)</pre> |
||
==={{header|Unicon}}=== |
|||
The Icon solution works in Unicon. |
|||
=={{header|J}}== |
=={{header|J}}== |