why this code is not valid??
Nqueens problem in recursion
U have gone wrong at multiple point in the recursion loop,
Please go through the video tutorial once more time, that would help you to develop a better understanding ,
For the time being i have updated the code.
Also the 2D board array is not being properly passes, u need to take proper care of the parameter passing
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
how the 2D board array passed??
In order to pass a 2D array it is not important to pass the no of rows the 2nd Dimension has to be mentioned, So i just passed
int board[][10] in the argument and that works well