The pseudocode :
Pair MaxiMini(array, sizeof_array)
if sizeof_array = 1
return element as both maximum and minimum
else if sizeof_array = 2
do one comparison to find the maximum and minimum
return that pair
else
# sizeof_array > 2
recursion for maximum and minimum of the left half
recursion for maximum and minimum of the right half
one comparison determines the true max of the two elements
one comparison determines the true min of the two elements
return the pair of maximum and minimum
Answer:
8/9
Explanation:
i remember this question on my daughters book
Answer:
6
Explanation:
97+3 = 100
89+11 = 100
83+17 = 100
71+29 = 100
59+41 = 100
53+47 = 100
I counted them using excel, see pic.