Question: Write and test a Java/Python recursive method for finding the maximum element in an array, A, of n elements. What is your running time? Hint:

Write and test a Java/Python recursive method for finding the maximum element in an array, A, of n elements. What is your running time? Hint: an array of size 1 would be the stop condition. The implementation is similar to linearSum method in lecture 5 examples. You can use the Math.max method for finding the maximum of two numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
