Given a 2D (2 dimensional) array, find the largest element in it.
Write a solution that accepts a 2D-array A and two integers M (number of rows) and N (number of columns). The output is the largest element in an array.
Input
2
3
1 4 5
2 3 0
Where,
Output
5
*In Java
Comments
Leave a comment