Mental Model
Place N queens on an NxN chessboard so that no two queens attack each other. We try positions row by row, backtracking when conflicts arise.
Analogy: Imagine seating N guests at a square table with N seats per side, where no guest can sit where they can see another guest directly across or diagonally. You try seating one guest at a time, and if a conflict happens, you move them to a different seat or backtrack to change previous seats.
Board (4x4 example): . . . . . . . . . . . . . . . . '.' means empty cell 'Q' means queen placed Initial empty board: . . . . . . . . . . . . . . . .
