1351. Count Negative Numbers in a Sorted Matrix Updated: 2024-03-12 1 min read Algorithms , LeetCode On This PageLeetCode problem 1351class Solution: def countNegatives(self, grid: List[List[int]]) -> int: return sum(bisect_left(row[::-1], 0) for row in grid)