0
Can anyone help me to solve this error
2 odpowiedzi
+ 2
You call nQueen with x being 0 as the initial argument, x is being used in the first loop in issafe as the delimiter, but in nQueen you subtract 1 from x after each recursion which causes x to go negative and that causes the loop iterator's value to get very big.
Probably you meant to do +1 instead?
0
Thankyou so much I realised my mistake.