Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
modified ale1ster solution in Clear category for Digits Doublets by StefanPochmann
def checkio(N):
P = [N[:1]]
for p in P:
if p[-1] == N[-1]:
return p
P += [p+[n] for n in N if sum(i!=j for i,j in zip(str(p[-1]), str(n))) == 1]
April 17, 2015
Comments: