Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (11 sloc) 372 Bytes

N Queens

Calculate the unique number of solutions to the N-Queens problem for an NxN board.

usage:

python nqueens.py <number of queens>

Example:

python nqueens.py 4

Note: I was completely sober (seriously, @mythmon can confirm) while writing this code.

Report

If you want to see the report run the gen_report.sh script.

./gen_report.sh