shortest sudoku solver python - does work?
i enactment around possess sudoku solver looking pointers good quick settlement i came opposing this:
def r(a):i=a.find('0');~i exit(a);[m
in[(i-j)%9*(i/9^j/9)*(i/27^j/27|i%9/3^j%9/3)or a[j]for
j range(81)]or r(a[:i]+m+a[i+1:])for m in'%d'%5**18]
from sys import*;r(argv[1])
my possess doing solves sudokus same proceed i solve conduct nonetheless does mysterious algorithm work?
Comments
Post a Comment