Backtracking challenges Count N queen Problem

solution of this problem given in recursion challlenge in which
we placed first queen at 0,0 check it is safe or not then after that we want to place next queen in this baord so we call next row for placed next queen. my question is that we can also placed next queen in same row after next 2 column means 0,2 or 0,3 because in question there is agiven that no two queen can not kill in next one move so we can placed a second queen in same row after two column because iin one move it can not kill.

hi @abhishekg
if you place the queen in same row then it will definitely kill the queen in same row thats why we go to the second row and place the queen there.

but given in question is that we make a solution such that no two queen can kill each other in one move . according to it we make solution such that queen can not kill in one move .so after two column we can placed there is no mention is that queen can kill same row queen so why we assuming ???

@abhishekg
we are being proactive if we place at queen at 0,0 then place a queen in same row like 0,2
then any one of them can kill each other.

@abhishekg if you still have a doubt try to form 4*4 matrix and place 4 queens there

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.