SIGN IN SIGN UP
TheAlgorithms / Python UNCLAIMED

All Algorithms implemented in Python

0 0 1 Python

matrix/count_paths.py (#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 <[email protected]>

* Update matrix/count_paths.py

Co-authored-by: Chris O <[email protected]>

* [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 <[email protected]>

Co-authored-by: J <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Chris O <[email protected]>
Co-authored-by: Caeden Perelli-Harris <[email protected]>
J
Jason Devers committed
7b7b3dd086eb3d8f6a82aa94b4398c0b95a7f186
Parent: 3ec0aa8
Committed by GitHub <[email protected]> on 10/30/2022, 5:20:07 AM