Sorting algorithms/Pancake sort: Difference between revisions

Updated to work with version 1.4 of Nim.
(Added Wren)
(Updated to work with version 1.4 of Nim.)
Line 2,502:
for i in countdown(length, 2):
var maxNumPos = 0
for a in 0 .. < i:
if list[a] > list[maxNumPos]:
maxNumPos = a
Anonymous user