Browse and switch challenges
Sudoku Solver

Solve a 9x9 Sudoku. Empty cells are '.'. Return a completed valid grid.

Important

  • -The solution must satisfy all row, column, and 3x3 box constraints.
  • -Assume a unique solution exists.
Signature
Constraints
  • -Grid is 9x9
  • -Digits '1'..'9' or '.'
Examples
    System prompt
    0 tokens
    Read-only
    // Waiting for generated code…
    // Your output will appear here as soon as the model returns JavaScript.
    // It must define function sudoku(…).
    // Tip: write a prompt on the left and click "Generate code" .
    0 tokens
    Submission #1
    0tokens(0/0)
    Leaderboard
    Loading leaderboard...