Write a recursive method that returns the smallest integer


Write a recursive method that returns the smallest integer in an array of integers. If you divide the array into two pieces- halves, for example-and find the smallest integer in each of the two pieces, the smallest integer in the entire array will be the smaller of the these two integers. Since you will be searching a portion of the array-for example, the elements array[first] through array[last]-it will be convenient for your method to have three parameters: the array and two indices, first and last. You can refer to the method displayArray in Segment 7.18 for inspiration.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a recursive method that returns the smallest integer
Reference No:- TGS02194204

Expected delivery within 24 Hours