Linked Questions

23 votes
5 answers
2k views

When a constructor calls a helper function, should the helper mutate the object or return part of the object?

I have a private method that is called from the constructor to instantiate a bunch of objects. I can do it two ways. ...
dwjohnston's user avatar
  • 1,326
15 votes
5 answers
6k views

Sudoku Solver in Java

This is an assignment posted here. This is my first foray into OO for me. Is this design OK? Or is there something very wrong that I'm not seeing at all. Any suggestions are most welcome and needed. ...
rdsarna's user avatar
  • 375
9 votes
5 answers
5k views

Sudoku verifier in Java

This program verifies if a matrix is a Sudoku or not. These conditions should be verified: There are no duplicates in a row, column, or square The sum of a row, column, or square should be equal to ...
Blaviken25's user avatar
10 votes
2 answers
10k views

Sudoku generator in Java

I have written this Sudoku Generator. How good/bad is this? How can I improve this? ...
user avatar
7 votes
3 answers
8k views

Searching all diagonals of a 2D M x M array

I've started writing a piece of code to help me search for an object in all the objects found in the diagonals of an M x M 2D array. Though the code works, I'd like to know if there is a way I can ...
TheJackal's user avatar
  • 269
6 votes
1 answer
2k views

Sudoku Solver - Recursive Solve

Any ideas on making my code a bit more clean and efficient? Any criticism is appreciated. I don't like that I'm calling my lengthy DeepCopy method so many times, ...
CSUndergrad's user avatar
6 votes
2 answers
3k views

Sudoku with Android

I have been programming for a long time, but nobody has given me any feedback if my code is good or not. Please review it, and give me feedback where I could be better. The source code is also on ...
Marcell Elek's user avatar
11 votes
1 answer
610 views

Multithreading class for asynchronous usage of a custom client/server exchange

I've thrown everything I can at this, and I can't get it to lock or crash. My hope is that I have applied the principles correctly. I write client apps in JavaScript, and this is only the 3rd .NET ...
blaze4218's user avatar
  • 353
4 votes
2 answers
366 views

Sudoku Valid Arangements Permutations Enumerator

I wondered if anyone has any ideas to make this cleaner or more efficient. Mostly this was an exercise to generate the data once (So speed really isn't too important, but I'd love to see what ...
Thymine's user avatar
  • 141
4 votes
2 answers
437 views

Create a LINQ Killer Sudoku Cage Solver

When playing Killer Sudoku I find myself repeatedly writing stuff like this: 12/3 921 831 741 732 651 642 543 and then crossing out the combinations that include ...
pjsvis's user avatar
  • 41
2 votes
1 answer
440 views

Verification of Sudoku boards

A valid Sudoku board has the following properties The board must be square (n-by-n). Let m = sqrt(n) All rows must contain the numbers 1-n All columns must ...
Stewie Griffin's user avatar
0 votes
1 answer
244 views

Check if two numbers are the same in a box

I am making a Sudoku game and I have managed to add random numbers, add numbers, and to checklines (if there is 2 numbers on the same line). I am trying to check the 3x3 boxes if the number is twice ...
user3604304's user avatar