|
The problem you are having is that the number of recursion stacks you are accruing is causing the program to crash. From what I've been able to see you have called solve() recursively about 4300+ times by the time it crashes. During this whole time you have never returned from any of the recursive calls.
|