matrix/count_paths.py (#7533)
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 <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@users.noreply.github.com>

* Update matrix/count_paths.py

Co-authored-by: Chris O <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@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 <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>

Co-authored-by: J <dc4288a34b1017e1eaf13bddb4b1723493c532f0@wireless-10-105-49-243.umd.edu>
Co-authored-by: pre-commit-ci[bot] <3ea08453efb076ca910552532a53973a6527df40@users.noreply.github.com>
Co-authored-by: Chris O <38cfa01ae32af4ae18d97799e4f020b04b4a3cba@users.noreply.github.com>
Co-authored-by: Caeden Perelli-Harris <1d137fe7d2075b153d55a5b9fdbf2b26e74b91ae@gmail.com>
TheAlgorithms/Python