Answer to Question #154656 in Java | JSP | JSF for fify

Question #154656

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, 

  • The first line represents the number of rows. (M) 
  • The second line represents the number of columns. (N) 
  • The third line represents an array of elements of the 1st row and so on. 

 

Output 

    5

*In Java


1
Expert's answer
2021-01-10T18:36:54-0500
Dear fify, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog