Refactor NQueens implementation (#732)
* ref: refactor NQueens implementation - Rewrite `NQueensSolver` in OOP style - Use `n_queens_solver` method to hide internal state of `NQueensSolver` object - Add Rust docstrings - Write parametrized tests, add 6x6 case * ref: refactor implementation - Simplified the `NQueensSolver` struct initialization - Streamlined the `is_safe` method - Minor formatting changes * ref: update implementation - Use `std::mem::take()` instead of `clone` - Rewrite tests --------- Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
S
SOZEL committed
f8096d2cb5acb11bd717fca657cdb31dc6b0368e
Parent: c502484
Committed by GitHub <noreply@github.com>
on 6/26/2024, 6:54:30 AM