At 54:53, line no-223, as in this case we have placed the queen in the current row and we know that no queen can be placed in the same row so shouldn’t we pass row as row+1 and col=0 in the function call.
Directly moving to next row?
Hey @rishabhs70427_ac9bc1ed91d2a939 Yes you can definitely move to next row but if you do that you have to make sure that you’re moving to next row by certainly placing a queen in that means There should not be a case where the queen was not placed but you moved to next row. Just prevent this condition and you are good to go.
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.