← All problems
Hard · Backtracking

N Queens

List every placement of n nonattacking queens on an n-by-n board.

Full problem and submission ↗
main.js

Console

Ready