Gamified challenge · Backtracking
The board is 9 strings of 9 characters: a digit 1-9 is a given, and "." is a blank. Fill the blanks so that every row, every column and every 3 × 3 box contains each digit 1-9 exactly once. Every puzzle has exactly one solution.
Write solve(board) that returns the completed board in the same form: 9 strings of 9 digits, with every given left as it was. Rows, columns and boxes are numbered from 0 in the messages.
Example: if the only blank is in a row reading .19327486, the missing digit is 5, and that row comes back as 519327486.
This game is part of the paid plans. Sign in, then pick a plan to write your answer, watch it play out, and step through the algorithm with its guide.
Sign in with Google