Slug: bt-nqueens-01 · Paired reading: Chapter 22
Prompt
fn solve_n_queens(n: usize) -> Vec<Vec<String>> — all board solutions as
vectors of strings (Q / .). Track columns and both diagonals.
The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).
Don’t have the book yet? The landing page stays open — purchase unlocks this gym.
intermediate · order 146
Slug: bt-nqueens-01 · Paired reading: Chapter 22
fn solve_n_queens(n: usize) -> Vec<Vec<String>> — all board solutions as
vectors of strings (Q / .). Track columns and both diagonals.