Back to QuestionsPractice with This Question
N-Queens
96.9K views•Asked 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.