Sudoku Solver

फ्रीमियम
द्वारा Shouvik | अपडेट किया गया 3 महीने पहले | Gaming
लोकप्रियता

5 / 10

लेटेंसी

1,956ms

सेवा का स्तर

100%

Sudoku Solver अवलोकन

फॉलोवर: 0
API निर्माता:
avatar
Shouvik
Shouvik
API को रेट करें:
API को रेट करने के लिए लॉग इन करें

रीडमी

Solves standard 9 x 9 Sudoku puzzles, the objective is to fill a 9 × 9 grid with digits so that each column, each row, and each of the nine 3 × 3 subgrids that compose the grid (also called “boxes”, “blocks”, or “regions”) contain all of the digits from 1 to 9.

Input
You provide a JSON body with a board parameter.

For example:

{
“board”: “53…7…6…195…98…6.8…6…34…8.3…17…2…6.6…28…419…5…8…79”
}

“board” should be a string of length 81 (9 x 9) with the first 9 characters corresponding to the first row of 9 squares, the next 9 to second row, and so on. Numbers 1-9 will be considered filled squares. All other characters are treated as blank squares.

Output
The API will return a JSON object of the structure:

{
“board”: “53…7…6…195…98…6.8…6…34…8.3…17…2…6.6…28…419…5…8…79”,
“soln.”: “534678912672195348198342567859761423426853791713924856961537284287419635345286179”,
“solvable”: true
}

solvable will be True if the puzzle you provided is solvable, and False if it is not.
soln. will be the 81 character string solution to the puzzle you provided if solvable. If the puzzle is not solvable, solution will be an empty string “”.
board will be the 81 character puzzle board.

रेटिंग: 5 - वोट: 1