Quiz: N-Queens

Test your understanding

Check Your Understanding

In N-Queens, why can you track attacked diagonals using rowcolrow - col and row+colrow + col?

  1. A.All cells on the same diagonal share the same rowcolrow - col or row+colrow + col value
  2. B.Diagonals don't wrap around
  3. C.It simplifies the recursion
  4. D.It's more memory efficient than a 2D board
Start the roadmap to answer the quizzes and solve the challenges