Linked Questions

23 votes
5 answers
2k views

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,358
15 votes
5 answers
6k views

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

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 45 ...
Blaviken25's user avatar
10 votes
2 answers
10k views

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

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

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

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
682 views

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
397 views

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
486 views

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
461 views

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 contain ...
Stewie Griffin's user avatar
1 vote
1 answer
283 views

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