Skip to content

Instantly share code, notes, and snippets.

@renatooliveira
Created September 14, 2012 19:02
Show Gist options
  • Save renatooliveira/3723988 to your computer and use it in GitHub Desktop.
Save renatooliveira/3723988 to your computer and use it in GitHub Desktop.
def qsortr(list):
return [] if list==[] else qsortr([x for x in list[1:] if x < list[0]])+ [list[0]] + qsortr([x for x in list[1:] if x >= list[0]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment