Python/matrix
Caeden Perelli-Harris daa0c8f3d3
Create count negative numbers in matrix algorithm (#8813)
* updating DIRECTORY.md

* feat: Count negative numbers in sorted matrix

* updating DIRECTORY.md

* chore: Fix pre-commit

* refactor: Combine functions into iteration

* style: Reformat reference

* feat: Add timings of each implementation

* chore: Fix problems with algorithms-keeper bot

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* test: Remove doctest from benchmark function

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* Update matrix/count_negative_numbers_in_sorted_matrix.py

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

* refactor: Use sum instead of large iteration

* refactor: Use len not sum

* Update count_negative_numbers_in_sorted_matrix.py

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2023-06-10 14:21:49 +02:00
..
tests [mypy] Added/fixed type annotations for "rotate_matrix.py" & "test_matrix_operation.py" (#4221) 2021-02-26 14:30:35 +01:00
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
binary_search_matrix.py Create binary_search_matrix.py (#6995) 2022-10-13 22:03:15 +02:00
count_islands_in_matrix.py Add pep8-naming to pre-commit hooks and fixes incorrect naming conventions (#7062) 2022-10-13 00:54:20 +02:00
count_negative_numbers_in_sorted_matrix.py Create count negative numbers in matrix algorithm (#8813) 2023-06-10 14:21:49 +02:00
count_paths.py matrix/count_paths.py (#7533) 2022-10-30 18:20:07 +13:00
cramers_rule_2x2.py Raise error not string (#7945) 2022-11-06 15:54:44 +01:00
inverse_of_matrix.py added support for inverse of 3x3 matrix (#7355) 2022-10-26 10:36:40 +02:00
largest_square_area_in_matrix.py pre-commit: Upgrade psf/black for stable style 2023 (#8110) 2023-02-01 18:44:54 +05:30
matrix_class.py fix: mypy 0.991 issues (#7988) 2022-11-15 18:29:14 +01:00
matrix_operation.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
max_area_of_island.py [Matrix] Max area of island problem solved DFS algorithm (#6918) 2022-10-18 20:05:18 +02:00
nth_fibonacci_using_matrix_exponentiation.py Add flake8 pluin flake8 bugbear to pre-commit (#7132) 2022-10-13 18:03:06 +02:00
pascal_triangle.py refactor: Move pascals triange to maths/ (#7932) 2022-11-01 20:25:39 +01:00
rotate_matrix.py Add missing type hints in matrix directory (#6612) 2022-10-04 20:05:56 +02:00
searching_in_sorted_matrix.py Add missing type hints in matrix directory (#6612) 2022-10-04 20:05:56 +02:00
sherman_morrison.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +02:00
spiral_print.py Update spiral_print.py (#7674) 2022-10-26 18:58:33 +02:00