← MAQ Software questions

N-Queen Problem

Filed under MAQ Software · Also reported at Accolite, BNY Mellon, Freshworks, Goldman Sachs, Gwynnie Bee (CaaStle), GwynnieBee, Infybeam, Livspace and 3 more

The n-queens puzzle is the problem of placing n queens on an n x n chessboard such that no two queens attack each other. Return all distinct solutions to the n-queens puzzle.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MAQ Software questions

Collected from public candidate posts and coding forums. Updated Nov 2026.