N-Queens — Backtracking

Place queens on a chess-style board so none attack another, with some squares roped off that cannot hold queens; list every layout.

Backtracking · Medium

More in Backtracking

All algorithm problems