Maximum Number Of 1's Row
easy
Given a boolean 2D array, where each row is sorted. Find the row with the maximum number of 1s.
Constraints
1 <= n, m <= 40 0 <= mat[][] <= 1
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
4 3
0 1 1
0 0 1
1 1 1
0 0 1
Sample Output
2