Question 1 Suppose you have to design a number calculation system. You need to write a recursive function that will take a 2 dimensional array / list(in python) of numbers. You need to find the...


Usage of built in methods/libraries are NOT ALLOWED


Question 1<br>Suppose you have to design a number calculation system. You need to write a recursive function<br>that will take a 2 dimensional array / list(in python) of numbers. You need to find the minimum number<br>of the array / list using a recursive function. Implement the following recursive function.<br>[You can not use any loop in the code]<br>Hint: You will need nested recursive functions.<br>[Note for Implementation: You are not allowed to use any built-in functions except len() and print() in<br>Python and any kind of global/class variable].<br>def firstFunctionMin (arr, index1, index2, min):<br>#To Do<br>return<br>OR<br>public int firstFunctionMin (int[][] arr, int index1, int index2, int min) {<br>//To Do<br>return<br>}<br>

Extracted text: Question 1 Suppose you have to design a number calculation system. You need to write a recursive function that will take a 2 dimensional array / list(in python) of numbers. You need to find the minimum number of the array / list using a recursive function. Implement the following recursive function. [You can not use any loop in the code] Hint: You will need nested recursive functions. [Note for Implementation: You are not allowed to use any built-in functions except len() and print() in Python and any kind of global/class variable]. def firstFunctionMin (arr, index1, index2, min): #To Do return OR public int firstFunctionMin (int[][] arr, int index1, int index2, int min) { //To Do return }
Sample Input<br>Sample Output<br>Explanation<br>[[10, 2, 13], [4, 15, 16], [7, 8,<br>9]]<br>2<br>Here, in the list the minimum<br>number is 2.<br>[[15, 18], [4, 17]]<br>Here, in the list the minimum<br>number is 4.<br>4<br>

Extracted text: Sample Input Sample Output Explanation [[10, 2, 13], [4, 15, 16], [7, 8, 9]] 2 Here, in the list the minimum number is 2. [[15, 18], [4, 17]] Here, in the list the minimum number is 4. 4

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here