← All problems
Hard · Backtracking
N Queens
List every placement of n nonattacking queens on an n-by-n board.
Full problem and submission ↗List every placement of n nonattacking queens on an n-by-n board.
Full problem and submission ↗