Skip to content

Instantly share code, notes, and snippets.

@lqez
Last active August 29, 2015 14:10
Show Gist options
  • Save lqez/e0acd5fcf8db9ec985b7 to your computer and use it in GitHub Desktop.
Save lqez/e0acd5fcf8db9ec985b7 to your computer and use it in GitHub Desktop.
Let's try monkeysort
from random import shuffle
s = list('typewriter')
tried = 0
while(True):
tried += 1
shuffle(s)
if ''.join(s) == 'eeiprrttwy':
break
print tried, s
@aanoaa
Copy link

aanoaa commented Nov 27, 2014

노잼.. i cri..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment