Solve Sudoku

FREEMIUM
(Ким) Sean Osier | Оновлено 1ヶ月前 | Gaming
Популярність

8 / 10

Затримки

1,762ms

Рівень обслуговування

100%

Health Check

N/A

README

Solve Sudoku API

Solves standard 9 x 9 Sudoku puzzles

Input

You provide a JSON body with a puzzle parameter.

For example:

{
  "puzzle": "2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3"
}

puzzle 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:

{
    "solvable": True
    "solution": "284375196739816254651942378476128539312594687598637412143769825965283741827451963" 
}

solvable will beTrue if the puzzle you provided is solvable, and False if it is not.

solution 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 "".

Solve Sudoku API

Solves standard 9 x 9 Sudoku puzzles

Input

You provide a JSON body with a puzzle parameter.

For example:

{
  "puzzle": "2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3"
}

puzzle 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 the 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:

{
    "solvable": True
    "solution": "284375196739816254651942378476128539312594687598637412143769825965283741827451963" 
}

solvable will be True if the puzzle you provided is solvable, and False if it is not.

solution 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 "".

Відстежувачі: 30
Створювач API:
Rapid account: Sean Osier
Sean Osier
sosier
Увійти в «Ставки по API»
Рейтинг: 2.3 - Голосів: 3