kucheasysa

Algoverse_adesh_23

Jun 20th, 2024
721
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. class Solution:
  2.     def countNegatives(self, grid: List[List[int]]) -> int:
  3.         count = 0
  4.         for i in grid:
  5.             for j in i:
  6.                 if j< 0 :
  7.                     count = count +1
  8.         return count
Advertisement
Add Comment
Please, Sign In to add comment