diff --git a/E_1351_CountNegativeNumbersinaSortedMatrix.py b/E_1351_CountNegativeNumbersinaSortedMatrix.py new file mode 100644 index 0000000..1bd03af --- /dev/null +++ b/E_1351_CountNegativeNumbersinaSortedMatrix.py @@ -0,0 +1,17 @@ +class Solution: + def countNegatives(self, grid: List[List[int]]) -> int: + def binary_search(row): + start, end = 0, len(row) + while start