I have programmed a brute force sudoku solver. However, whilst it is fine for some of the easier puzzles, it seems to randomly stop half way through for the hard ones.
Im not sure, but could this be because I am using a lot of recursion? If i understand correctly, everytime you call recursion it eats away at memory. Could my program be stopping itself automatically due to some sort of overflow?
If so, is there any way around this?