Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: r(r(r(v))) solution in Creative category for Cipher Map by przemyslaw.daniel
def recall_password(a, b, r=lambda a: sorted([(y, len(a)-1-x) for x, y in a])):
v = [divmod(x.start(), len(a)) for x in __import__('re').finditer('X', ''.join(a))]
return ''.join([b[x][y] for x, y in v+r(v)+r(r(v))+r(r(r(v)))])
April 28, 2017
Comments: