N queen problem

sir why this code is not working???
what am i doing wrong??

i m sorry i think i sent the wrong code

this is the correct code

hello @pushkar24sharma in which question you have doubt i request if you could please elaborate because you have raised the doubt on n queen question and the code doesn’t seems for that question .
Happy Learning !!

1 Like

@tusharaggarwal272 sir by mistake i sent u the wrong code. i m sorry. this is the real code

@pushkar24sharma yeah got it . i am going through your code .
i will tell you what is your mistake .

1 Like

hey @pushkar24sharma i have corrected your code and now it is giving the correct output .
here is the correct code :


if you feel that your doubt is cleared please mark this doubt as resolved.
Happy Learning !!

1 Like

@tusharaggarwal272 okay thank u sir

@pushkar24sharma please mark this doubt as resolved .