help how to sort a list in order of 'n' in python without using inbuilt functions??

rusi rustompmody at gmail.com
Sat May 25 01:43:18 EDT 2013


On May 25, 10:15 am, lokeshkopp... at gmail.com wrote:
> On Friday, May 24, 2013 1:34:51 PM UTC+5:30, lokesh... at gmail.com wrote:
> > i need to write a code which can sort the list in order of 'n' without use builtin functions
>
> > can anyone help me how to do?
>
>  Note:
> the list only contains 0's,1's,2's
> need to sort them in order of 'n'

Its a classic problem
http://en.wikipedia.org/wiki/Dutch_national_flag_problem



More information about the Python-list mailing list