Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Do or do not solution in Creative category for Sudoku Solver by veky
def checkio(s,f=lambda s:sum(s,[]),T=range(3),V=ValueError):
def R():
if all(len(set(l)-{0})+l.count(0)==9for l in s+list(zip(*s))
+[f(s[3*l+i][3*k:][:3]for i in T)for k in T for l in T]):
try: i,j=divmod(f(s).index(0),9)
except V as e:e.v=s;raise
for r in reversed(range(10)):s[i][j]=r;r and R()
try: R()
except V as e:return e.v
Feb. 21, 2014
Comments: