Guest User

Untitled

a guest
Dec 9th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def partition(a)
  2. pivot = a[0]
  3. lesser = [x for x in a[1:] if x < pivot]
  4. greater = [x for x in a[1:] if x >= pivot]
Add Comment
Please, Sign In to add comment