471,050 Members | 1,110 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

Sorting a list without using .sort()

I want to be able to sort a list without using the sort function.
I have this algorithm down:
BEGIN
make a copy of the list
make an empty result list
LOOP as long as the copylist isn't empty:
find the minimum value in the copylist, remove it
add that minval to the end of the resultlist
return the result list
END

but I can't seem to put into syntax for for python (3.3)
Nov 10 '13 #1
0 1386

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

40 posts views Thread by Elijah Bailey | last post: by
1 post views Thread by kgatchell2001 | last post: by
1 post views Thread by samme smith | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.