How to write c program for n queen problem with back tracking | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to write c program for n queen problem with back tracking

c program for n Queen

18th Jul 2017, 3:11 PM
Swathi P I
3 Answers
0
If I read the problem well, n Queens is on a 8x8 chess board with 8 queens. If yes, here is my solution : https://code.sololearn.com/cE4pX42tOmaz/?ref=app
18th Jul 2017, 7:29 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
can we do it for 92 solutions
19th Jul 2017, 2:44 PM
Swathi P I
0
Yes you can, I would advise you to Google it as they are plenty of answers for that (even if they are not in C, you can just easily translate them) but I do not know them myself
19th Jul 2017, 2:55 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar