Sorting algorithms/Gnome sort: Difference between revisions

Content added Content deleted
(Sorting algorithms/Gnome sort en True BASIC)
Line 2,027: Line 2,027:
<pre>[0,0,2,3,3,8,17,36,40,72]</pre>
<pre>[0,0,2,3,3,8,17,36,40,72]</pre>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>gnomeSort[list_]:=Module[{i=2,j=3},
<lang Mathematica>gnomeSort[list_]:=Module[{i=2,j=3},
While[ i<=Length[[list]],
While[ i<=Length[[list]],