Function deus_nqueens::n_queens_backtrack
source · pub fn n_queens_backtrack(size: usize) -> impl Iterator<Item = NQueensState>
Expand description
O(n × n!) time to find all solutions
pub fn n_queens_backtrack(size: usize) -> impl Iterator<Item = NQueensState>
O(n × n!) time to find all solutions