Skip to content

Instantly share code, notes, and snippets.

@phylake
Created February 9, 2012 23:35
Show Gist options
  • Save phylake/1784271 to your computer and use it in GitHub Desktop.
Save phylake/1784271 to your computer and use it in GitHub Desktop.
1.61803398874.com solution
l = "xfbhlqtlj".split('').collect {|c| c[0] - 97}
k = [6,1,8,0,3,3,9,8,8]
l = l.zip(k).collect do |p|
t = (p[0] - p[1]) % 26
t += 97
t.chr
end
p l.join('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment