print all possible solutions of N queen problem | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

print all possible solutions of N queen problem

I have used this code for solving the problem but it gives me only one solution. How can i get all solutions. https://code.sololearn.com/cA3A03A2A6A1

21st Dec 2020, 12:26 PM
Charchit Dahiya
Charchit Dahiya - avatar
2 ответов
+ 3
https://code.sololearn.com/cqwVmxNx4Rya/?ref=app
22nd Dec 2020, 4:09 AM
Vitaly Sokol
Vitaly Sokol - avatar
0
Thanks a lot. I was searching for it. Please can you explain also what changes you have made. Thanks in advance.
22nd Dec 2020, 7:04 AM
Charchit Dahiya
Charchit Dahiya - avatar