pub fn n_queens_backtrack(size: usize) -> impl Iterator<Item = NQueensState>
Expand description

O(n × n!) time to find all solutions