{"id":18352826,"url":"https://github.com/pkprajapati7402/sudoku-solver","last_synced_at":"2025-04-13T15:25:58.294Z","repository":{"id":250257367,"uuid":"833941259","full_name":"pkprajapati7402/Sudoku-Solver","owner":"pkprajapati7402","description":"A C++ program to solve Sudoku puzzles using backtracking. Input a 9x9 grid with empty cells represented by 0s, and the solver will find the solution if it exists. Includes sample images for input format and solved output.","archived":false,"fork":false,"pushed_at":"2024-07-26T05:08:31.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T06:22:18.589Z","etag":null,"topics":["algorithms","backtracking","cpp","grid","problem-solving","puzzle-solver","recursion","sudoku-solver"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkprajapati7402.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-26T04:59:19.000Z","updated_at":"2024-10-14T07:09:15.000Z","dependencies_parsed_at":"2024-07-26T06:28:26.439Z","dependency_job_id":"ea7c4e9c-e348-4bdc-86eb-6319c8012cda","html_url":"https://github.com/pkprajapati7402/Sudoku-Solver","commit_stats":null,"previous_names":["pkprajapati7402/sudoku-solver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkprajapati7402%2FSudoku-Solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkprajapati7402%2FSudoku-Solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkprajapati7402%2FSudoku-Solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkprajapati7402%2FSudoku-Solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkprajapati7402","download_url":"https://codeload.github.com/pkprajapati7402/Sudoku-Solver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248734203,"owners_count":21153169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithms","backtracking","cpp","grid","problem-solving","puzzle-solver","recursion","sudoku-solver"],"created_at":"2024-11-05T21:37:34.494Z","updated_at":"2025-04-13T15:25:58.241Z","avatar_url":"https://github.com/pkprajapati7402.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku Solver\n\nThis repository contains a C++ program that solves Sudoku puzzles using a backtracking algorithm. The solver takes a partially filled Sudoku grid as input and provides a solution if one exists.\n\n## How It Works\n\nThe program uses a backtracking approach to solve the Sudoku puzzle. It recursively tries all numbers in each unassigned cell and backtracks if no number fits.\n\n## Features\n\n- Input a 9x9 Sudoku puzzle.\n- Outputs the solved Sudoku grid.\n- Provides sample images for understanding the input format and the solved output.\n\n## Getting Started\n\n### Prerequisites\n\n- C++ Compiler (GCC, Clang, etc.)\n\n### Usage\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/pkprajapati7402/Sudoku-Solver.git\n    cd Sudoku-Solver\n    ```\n\n2. Compile the program:\n    ```bash\n    g++ -o sudoku_solver sudoku_solver.cpp\n    ```\n\n3. Run the executable:\n    ```bash\n    ./sudoku_solver\n    ```\n\n4. Enter the Sudoku puzzle (use 0 for empty cells) when prompted.\n\n### Input Format\n\nThe program expects a 9x9 grid of numbers, with `0` representing empty cells. \n\n**Example:**\n```\n5 3 0 0 7 0 0 0 0\n6 0 0 1 9 5 0 0 0\n0 9 8 0 0 0 0 6 0\n8 0 0 0 6 0 0 0 3\n4 0 0 8 0 3 0 0 1\n7 0 0 0 2 0 0 0 6\n0 6 0 0 0 0 2 8 0\n0 0 0 4 1 9 0 0 5\n0 0 0 0 8 0 0 7 9\n```\n\nRefer to the image below for a visual representation of the input format:\n\n![Input Format](input.PNG)\n\n### Output\n\nIf the puzzle has a solution, it will be displayed as a 9x9 grid. If there is no solution, the program will output a message indicating so.\n\nRefer to the images below for sample input and output:\n\n![Sample Sudoku Puzzle](sudoku.PNG)\n![Solved Sudoku Puzzle](output.PNG)\n\n## Sample Execution\n\n![Input](input.PNG)\n![Output](output.PNG)\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nFeel free to customize this README further to suit your needs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkprajapati7402%2Fsudoku-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkprajapati7402%2Fsudoku-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkprajapati7402%2Fsudoku-solver/lists"}