Write a recursive function that returns the maximum of n elements of an array of integers. Give the fastest solution in
Posted: Thu May 05, 2022 1:10 pm
Write a recursive function that returns the maximum of n
elements of an array of integers. Give
the fastest solution in terms of computation time.
The method consists in dividing the array into equal parts at each
recursive call and then looking
for the maximum of each part in order to find the maximum of the
whole array.
elements of an array of integers. Give
the fastest solution in terms of computation time.
The method consists in dividing the array into equal parts at each
recursive call and then looking
for the maximum of each part in order to find the maximum of the
whole array.