class Solution {
fun countNegatives(grid: Array<IntArray>): Int {
var cnt = 0
for (item in grid) {
for (tmp in item) {
if (tmp < 0) cnt += 1
}
}
return cnt
}
}
class Solution {
fun countNegatives(grid: Array<IntArray>): Int {
var cnt = 0
for (item in grid) {
for (tmp in item) {
if (tmp < 0) cnt += 1
}
}
return cnt
}
}