Sudoku Py / C++11 / D?
Era Scarecrow
rtcvb32 at yahoo.com
Wed Aug 15 13:13:09 PDT 2012
On Wednesday, 15 August 2012 at 15:39:26 UTC, ixid wrote:
> Could you supply your code? Which one are you using as the
> hardest? If you're solving the 1400 second one in 12 seconds
> that's very impressive, I can't get it below 240 seconds.
Expanded to 225 lines after comments and refactoring for names. I
think it should be fairly easy to follow.
https://github.com/rtcvb32/D-Sudoku-Solver
Output:
$ dmd sudoku_solve.d -g -O
$ time ./sudoku_solve.exe
.....6....59.....82....8....45........3........6..3.54...325..6..................
.....6...
.59.....8
2....8...
.45......
..3......
..6..3.54
...325..6
.........
.........
138246579
659137248
274598163
745682391
813459627
926713854
487325916
362971485
591864732
Start: TickDuration(3610965141031)
End: TickDuration(3611099830488)
Time: TickDuration(134689457)
real 0m9.565s
user 0m0.015s
sys 0m0.046s
More information about the Digitalmars-d-learn
mailing list