Quiz: Backtracking

Reinforce your understanding of backtracking algorithms and their applications in problem-solving

We'll cover the following...
Technical Quiz
1.

In the nn queens problem, why do we keep an array Q[1.n]Q[1….n]?

A.

To store the number of rows

B.

To keep a record of which square in each row keeps a queen

C.

To change columns

D.

To keep the loop running


1 / 5
...