Doubt in quiz of divide and conquer

in question 5,
Q5)
The number of comparisons required to find maximum and minimum in the given array of nelement using divide and conquer:

a. ciel(3n/2)
b. ciel(3n/2)+2
c. floor(3n/2)
d. floor(3n/2)-2
plz give the explaination , i am not getting any solution

Hey @harsh.hj
ciel(x) Returns the smallest integer that is greater than or equal to x (i.e : rounds up the nearest integer).
Input : 2.5
Output : 3
Input : -2.1
Output : -2
floor(x) : Returns the largest integer that is smaller than or equal to x (i.e : rounds downs the nearest integer).
Input : 2.5
Output : 2
Input : -2.1
Output : -3
1Pick 2 elements(a, b), compare them. (say a > b)
2. Update min by comparing (min, b)
3. Update max by comparing (max, a)

Therefore, we need 3 comparisons for each 2 elements, so total number of required comparisons will be (3n)/2 – 2, because we do not need to update min or max in the very first step.