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

12/21/2020 12:26:45 PM

Charchit Dahiya

2 Answers

New Answer

+3

https://code.sololearn.com/cqwVmxNx4Rya/?ref=app

0

Thanks a lot. I was searching for it. Please can you explain also what changes you have made. Thanks in advance.