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 <[email protected]> * Update matrix/count_negative_numbers_in_sorted_matrix.py Co-authored-by: Christian Clauss <[email protected]> * Update matrix/count_negative_numbers_in_sorted_matrix.py Co-authored-by: Christian Clauss <[email protected]> * Update matrix/count_negative_numbers_in_sorted_matrix.py Co-authored-by: Christian Clauss <[email protected]> * Update matrix/count_negative_numbers_in_sorted_matrix.py Co-authored-by: Christian Clauss <[email protected]> * Update matrix/count_negative_numbers_in_sorted_matrix.py Co-authored-by: Christian Clauss <[email protected]> * 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 <[email protected]>
C
Caeden Perelli-Harris committed
daa0c8f3d340485ce295570e6d76b38891e371bd
Parent: 9c9da8e
Committed by GitHub <[email protected]>
on 6/10/2023, 12:21:49 PM