Fill In a 9×9 Sudoku Puzzle to Completion
Implement solveSudokuBoard
Example 1:
Input: board = [".39852746","852746139","746139852","591428367","428367591","367591428","973215684","215684973","684973215"]
Output: ["139852746","852746139","746139852","591428367","428367591","367591428","973215684","215684973","684973215"]
Example 2:
Input: board = [".398.274.","852746139","746139852","591428367",".283.759.","367591428","973215684","215684973",".849.321."]
Output: ["139852746","852746139","746139852","591428367","428367591","367591428","973215684","215684973","684973215"]
Example 3:
Input: board = [".39.52.46","8.27.61.9","746139852",".91.28.67","4.83.75.1","367591428",".73.15.84","2.56.49.3","684973215"]
Output: ["139852746","852746139","746139852","591428367","428367591","367591428","973215684","215684973","684973215"]
+ 2 hidden test cases run on Submit.
Constraints:
- ●
The board is always exactly 9 rows of 9 characters, each either a digit '1'–'9' or '.' for an empty cell - ●
The given puzzle always has exactly one valid completion - ●
A completed board must have each digit 1–9 appear exactly once in every row, every column, and every 3×3 box
board =