What is the goal of N-Queens?

Practice this question from N-Queens - Constraint Backtracking Pattern Practice Quiz, with options and an explanation.

Question

What is the goal of N-Queens?

Option A — Correct answer

Place n queens so none attack each other.

Option B

Sort the input once and stop

Option C

Run binary search on every state

Option D

Count only character frequencies

Explanation

Place n queens so none attack each other.

N-Queens - Constraint Backtracking Pattern Practice Quiz

All questions · Next question

Open on QuizMaker