Problem 52 · Hard

N-Queens II

Count the valid n-queens placements on an n by n board. The visual builds placements row by row and counts each completed board without storing it.

Open the interactive visualisation