Python/backtracking
David Aaron Banda Gutierrez 05c14c6be8
N queens math (#2175)
* add new file for another solution to the n queens problem

* Add the code for the algorithm, add comments and add at the top a general explanation

* Update backtracking/n_queens_math.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update backtracking/n_queens_math.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update backtracking/n_queens_math.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update backtracking/n_queens_math.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* No newline at the end of the file

* Type hints

* whitespaces fixed

* Fixed whitespaces

* Add type hints

* CodeSpell fixed

* update

* All changes made except changing the board variable to local

* Add doctest

* Update

* Update

* Update

* Update n_queens_math.py

Co-authored-by: Christian Clauss <cclauss@me.com>
2020-07-10 10:30:48 +02:00
..
all_combinations.py pyupgrade --py37-plus **/*.py (#1654) 2020-01-03 22:25:36 +08:00
all_permutations.py Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
all_subsequences.py Fix indentation contains tabs (flake8 E101,W191) (#1573) 2019-11-15 23:05:00 -08:00
coloring.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
hamiltonian_cycle.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
knight_tour.py Euler problem 551 sol 1: Reduce McCabe code complexity (#2141) 2020-06-22 14:16:12 +02:00
minimax.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
n_queens_math.py N queens math (#2175) 2020-07-10 10:30:48 +02:00
n_queens.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
rat_in_maze.py Fix line break after binary operator (#2119) 2020-06-15 15:47:02 +02:00
sudoku.py Simplify sudoku.is_completed() using builtin all() (#1608) 2019-12-08 22:42:17 +01:00
sum_of_subsets.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00