Sorting algorithms/Cycle sort: Difference between revisions
Content deleted Content added
→{{header|REXX}}: added version 4. |
m →{{header|D}}: corrected typo: eleswhere to elsewhere. |
||
Line 4: | Line 4: | ||
=={{header|D}}== |
=={{header|D}}== |
||
This version doesn't use Phobos algorithms beside 'swap'. Algorithms can be used to find where to put the item1 and |
This version doesn't use Phobos algorithms beside 'swap'. Algorithms can be used to find where to put the item1 and elsewhere. |
||
{{trans|Python}} |
{{trans|Python}} |
||
<lang d>import std.stdio, std.algorithm; |
<lang d>import std.stdio, std.algorithm; |