Created
February 17, 2015 15:04
-
-
Save gsathya/91df198528f0af190712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find(h, string_so_far): | |
if len(string_so_far) == 9: | |
return string_so_far[::-1] | |
for j, char in enumerate(letters): | |
if (h - j) % 37 == 0: | |
h = (h-j)/37 | |
string_so_far += letters[j] | |
return find(h, string_so_far) | |
print find(956446786872726, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment