Sudoku Solver!

I wanted to write a sudoku solver from a very long time. I had over estimated the problem; rather the solution, to a very great extent. It was sattvik who helped me to come out of that feeling. His words, 'simple validation and backtracking will do the job' made me think for sometime and i got the solution. I was really happy once i completed writing the code. started at 1 in the noon. At 5:30, i had something which could be compiled, but it didn't work as usual :P. debugged it till 8:30 to get the code working. :-)

Download the source code.. (Right click and say 'save link as')

And ya. this code is released under gplv3 ;-) Any ideas to improve the code is always welcome :-)

Comments

Awsome code

Great job man. Go ahead and program more difficult ones :)

GREAT!!!

Hi Krishna,
Had seen the code of your solver before you posted here, when you had mailed me. Great code!!! It has good performance too.
I happy to see the code under GPL 3, if possible please put this in the beginning of the file,

/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/

Also the cpp file link you have given to redirects here to an unformatted copy. Check out what the problem may be.

Ya sure.

I'll do that :-). The file opens in the browser itself. it can be avoided by a right click and save link as option. that solves the problem. Thanks.