Interview Questions and Answers :: Amazon
Home > Experience Archives > Amazon > Interview Question Set 2 > Discussion
2. Given a Boolean 2D array, where each row is sorted, find the row with the maximum number of 1s
Example:
Input matrix
0 1 1 1
0 0 1 1
1 1 1 1 // this row has maximum 1s
0 0 0 0
Output: 2
Answer:
No Discussion on this question yet!
No Discussion on this question yet!