Skip to content

Instantly share code, notes, and snippets.

@lnds
Created July 8, 2012 18:08
Show Gist options
  • Select an option

  • Save lnds/3072099 to your computer and use it in GitHub Desktop.

Select an option

Save lnds/3072099 to your computer and use it in GitHub Desktop.
Haming Solucion 0 en Python (www.programando.org)
def hamming(p1,p2,p3):
yield 1
m2 = times(p1, hamming(p1,p2,p3))
m3 = times(p2, hamming(p1,p2,p3))
m5 = times(p3, hamming(p1,p2,p3))
for h in merge(merge(m2, m3), m5):
yield h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment