mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-07 14:25:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
9daa2bbb3d
commit
4279985962
@ -62,10 +62,10 @@ class Solution(object):
|
|||||||
rows[row] |= bit
|
rows[row] |= bit
|
||||||
cols[col] |= bit
|
cols[col] |= bit
|
||||||
boxes[(row // 3) * 3 + (col // 3)] |= bit
|
boxes[(row // 3) * 3 + (col // 3)] |= bit
|
||||||
|
|
||||||
if solve():
|
if solve():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
board[row][col] = '.'
|
board[row][col] = '.'
|
||||||
rows[row] &= ~bit
|
rows[row] &= ~bit
|
||||||
cols[col] &= ~bit
|
cols[col] &= ~bit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user