matrix/count_paths.py (#7533) · zinating/algorithms-python@7b7b3dd · GitHub
Skip to content

Commit 7b7b3dd

Browse files
deprecatedjdJpre-commit-ci[bot]chriso345CaedenPH
authored
matrix/count_paths.py (TheAlgorithms#7533)
* added recursive dfs backtracking for count paths with doctests * fixed doc testing * added type hints * redefined r as row, c as col * fixed naming conventions, ran mypy, only tests that didn't pass were using List[], rathan list() * added another doctest, as well as a explanation above * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update matrix/count_paths.py Co-authored-by: Chris O <46587501+ChrisO345@users.noreply.github.com> * Update matrix/count_paths.py Co-authored-by: Chris O <46587501+ChrisO345@users.noreply.github.com> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com> Co-authored-by: J <jasondevers@wireless-10-105-49-243.umd.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chris O <46587501+ChrisO345@users.noreply.github.com> Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
1 parent 3ec0aa8 commit 7b7b3dd

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

matrix/count_paths.py

Lines changed: 75 additions & 0 deletions

0 commit comments

Comments
 (0)