text: CPP implementation of Naive method to count of negative numbers in M [ n ] [ m ]
code: #include <bits/stdc++.h> NEW_LINE using namespace std ; int countNegative ( int M [ ] [ 4 ] , int n , int m ) { int count = 0 ;