Back to Questions

N-Queens

96.9K viewsAsked at Stripe
Hard

Question Explain

Solve the N-Queens puzzle, where $N$ queens must be placed on an $N \times N$ chessboard such that no two queens attack each other. Return all distinct solutions. Use Backtracking.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
N-Queens - Interview Question