Enable ruff RUF002 rule (#11377)

* Enable ruff RUF002 rule

* Fix

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Maxim Smolskiy
2024-04-22 22:51:47 +03:00
committed by GitHub
parent 79dc7c97ac
commit 4700297b3e
69 changed files with 132 additions and 131 deletions

View File

@ -1,7 +1,7 @@
"""
Given a partially filled 9×9 2D array, the objective is to fill a 9×9
Given a partially filled 9x9 2D array, the objective is to fill a 9x9
square grid with digits numbered 1 to 9, so that every row, column, and
and each of the nine 3×3 sub-grids contains all of the digits.
and each of the nine 3x3 sub-grids contains all of the digits.
This can be solved using Backtracking and is similar to n-queens.
We check to see if a cell is safe or not and recursively call the