Search⌘ K
AI Features

N-Queens

N-Queens asks you to place n queens on an n by n chessboard so no two share a row, column, or diagonal, then return every distinct arrangement as strings of Q and . characters.

Statement

The N-Queens puzzle is a classic problem in which the goal is to place n queens on an n ...