Guest User

Untitled

a guest
Oct 16th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. def sort(l):
  2. while not is_sorted(l):
  3. choose indices i, j
  4. assert i < j
  5. if l[i] > l[j]:
  6. l[i], l[j] = l[j], l[i]
Add Comment
Please, Sign In to add comment