Sorting algorithms/Selection sort: Difference between revisions

(transfer RPL code to Bubble sort)
Tag: Manual revert
Line 1,338:
 
<syntaxhighlight lang="text">
funcproc sort . d[] .
for i = 1 to len d[] - 1
for j = i + 1 to len d[]
if d[j] < d[i]
swap d[j] d[i]
.
.
.
.
.
data[] = [ 29 4 72 44 55 26 27 77 92 5 ]
2,060

edits