News for hackers. Stuff that matters.
Re:Three Beautiful Quicksorts by schtog on Friday July 11, 2008 @10:23PM (#244232)
Python:

  def quicksort(lst):
      if len(lst) == 0:
          return []
      else:
          return quicksort([x for x in lst[1:] if x <   lst[0]]) + [lst[0]] + \
                 quicksort([x for x in lst[1:] if x >=   lst[0]])

There are no comments on this comment yet.