# Made sudoku solve algorithm!

**URL:** <https://forum.freecodecamp.org/t/made-sudoku-solve-algorithm/458467>\
**Category:** I Built This\
**Created:** [May 2, 2021, 10:54am UTC](https://forum.freecodecamp.org/t/made-sudoku-solve-algorithm/458467 "2021-05-02T10:54:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylvant](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sylvant/32/254977_2.png) [@Sylvant](https://forum.freecodecamp.org/u/Sylvant)\
**Post date:** [May 2, 2021, 10:54am UTC](https://forum.freecodecamp.org/t/made-sudoku-solve-algorithm/458467/1 "2021-05-02T10:54:47Z")

</div>

Its been about two weeks ive been stuck on designing algorithm for the Sudoku Solver challenge and even until the very end i was uncertain if ill make it work. At first i managed to write an algorithm which solves simple sudokus and it was clean and worked great. It worked on the example sudokus and i applied it to sudokus i found on the newspapers. But that wasnt enough, ive decided ill give it some more effort and add additional logics to solve more complex sudokus. I rewrote code several times and dealt with hundred of bugs, always looking like a dire cause, but finally somehow things (almost magically) worked! The code isnt really polished, as it intertwines two solve concepts which i failed to do gracefully, but it doesnt seem to give errors and the runtime is alright. The amazing thing is i created recursion on few crucial occasions and yet i consider recursion to still be foreign logic to me. Im glad i did not give up and went for the complex solution. Im yet to start working on the project itself, but this feels great. I have flashbacks from when i finished my calculator logic, but this time it seems even more of an achievement 🙂  
PS: i consider myself good at solving sudokus, which obviously can be crucial for success with the task

---

<div class="post-metadata">

**Author:** ![cyberYousuf](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cyberyousuf/32/216107_2.png) [@cyberYousuf](https://forum.freecodecamp.org/u/cyberYousuf)\
**Post date:** [May 4, 2021, 9:32am UTC](https://forum.freecodecamp.org/t/made-sudoku-solve-algorithm/458467/2 "2021-05-04T09:32:12Z")

</div>

Hi Sylvant,  
I wish for you to be a best Sudoku Solver.

I am also a great lover of Sudoku game.  
My first journey of playing this game in 2015 or 16 when I first saw Sudoku game in my Grandmother’s mobile phone(Samsung, express music). Inside the game has 100 levels/ games. I am start trying to solve level1. I am falling every time I tried. Finally I solve a game of Sudoku, It takes 4 or5 days (more or less). That day I solved 7 levels. It takes 30+ munities for every game.

By plying this games I discovered some logic by myself that takes less time to solve them. I am addicted with this game, I am playing every time when I get free time. Few days latter I solved every game (98 out of 100 / 2 was un-solvable).

In my area have a popular News Paper called “daily sun”. In the weekend day (Friday) give a problem of Sudoku game. If someone solve the problem they give them gift. Luckily I got some gift by solving the game.

Now, It takes 3 to 6 min to solve the Sudoku game.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [November 2, 2021, 9:33pm UTC](https://forum.freecodecamp.org/t/made-sudoku-solve-algorithm/458467/3 "2021-11-02T21:33:09Z")

</div>

Closed on November 2, 2021, 9:33pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
