deus-nqueens 0.3.0

NQueens Problem Solver
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

impl NQueens {
    pub fn solutions(rank: usize) -> BigUint {
        match rank {
            0 => BigUint::from_bytes_le(&[0]),
            _ => unimplemented!("Unknown solutions"),
        }
    }
    /// https://oeis.org/A002562
    pub fn solutions_unique(rank: usize) -> BigUint {
        match rank {
            0 => BigUint::from_bytes_le(&[0]),
            _ => unimplemented!("Unknown solutions"),
        }
    }
}