shubhankar5 / n-queens-solution

Solution for the n-queen problem with all the solutions being displayed and the number of solutions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

n-queens-solution

Solution for the n-queens problem with all the solutions being displayed and the number of solutions using backtracking and recursion.

How to use?

Enter the number of queens and the run nqueen.cpp to get all the possible solutions as well as its count.

Note: The solution for the n-queens problem increases drastically with the increase in the n value, so it might take a while for large values of n.

About

Solution for the n-queen problem with all the solutions being displayed and the number of solutions.


Languages

Language:C++ 100.0%