Question: Write a function named minElement that takes input as pairs of integers as a 2D array and the total number pairs (i.e. number of rows/first

 Write a function named minElement that takes input as pairs of

Write a function named minElement that takes input as pairs of integers as a 2D array and the total number pairs (i.e. number of rows/first dimension of the array) and then returns the minimum element in the array. The function must be named minElement The function must have two input parameters 1. 2D integer array: list of numbers where the second dimension is always of size 2 2. Integer: represents the size of the first dimension of the 2D array Returns the minimum element in the 2D array as an int Example with one pair: int array[112]-(113,15): minElement(array, 1) returns 15 Example with two pairs: int array 2]12-(11,2),(3,4) minElement(array,2) returns 4 Example with 4 pairs: int array 412]-(13,4)178,98)(12,-11)1909,4)) minElement(array, 4) returns 1909

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!