0
/ 5.0
Write a method called mins() that takes one parameter: a two-dimensional array of ints called nums. We will call the first dimension of ...
Write a method called mins() that takes one parameter: a two-dimensional array of ints called nums. We will call the first dimension of nums its “rows” and the second dimension its “columns”. This method must return an array of the same size as the number of rows in nums--where each cell of the answer contains the smallest value in the corresponding row of nums.
Examples:
mins({{1, 2, 3, 4}, {6, 5, 4, 4}, {0, 0, 0, 0}}) -> {1, 4, 0}
mins({{10, 2}, {60, 5}, {0, 1}}) -> {2, 5, 0}
Your feedback will appear here when you check your answer.