← Apple questions
CodingReported in a candidate post, Jul 2025

Solve the N-Queens problem via pair coding

Filed under Apple

Place n queens on an n x n chessboard so that no two queens attack each other (no two share a row, column or diagonal). Return all distinct solutions as boards, using 'Q' for a queen and '.' for an…

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 Apple questions

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