Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Last active January 10, 2016 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/fb9407076aa7236329be to your computer and use it in GitHub Desktop.
Save whatalnk/fb9407076aa7236329be to your computer and use it in GitHub Desktop.
TopCoder SRM #664 Div2
class BearCheats:
def eyesight(self, a, b):
res = 0
for(i, j) in zip(list(str(a)), list(str(b))):
if i != j:
res += 1
if res <= 1:
return "happy"
else:
return "glasses"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment