/8_Queens

A quick solution to the 8 queens problem and a templated class to solve N queen problems

Primary LanguageC++MIT LicenseMIT

8_Queens

This is a recursive backtracking c++ solution to the 8 Queens problem.

The n_queens.hpp file contains a general version of the code to calculation an NxN queen board using an array of bitsets to save the board state.