Advertisement
brucehoult

Untitled

Nov 17th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. def s(v):
  2.  if v:p=v.index(min(v));return[v[p]]+s(v[:p]+v[p+1:])
  3.  return v
  4.  
  5. print s(["a","quick","brown","fox","jumps","over","the","lazy","dog"])
  6.  
  7.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement