7) An array of n numbers is given, where n is an even number. The maximum as well as the minimum of these n numbers needs to be determined. Which of the following is TRUE about the number of comparisons needed?
Answer is:
At most 1.5n-2 comparisons are needed.
Related Data structures and Algorithms MCQ with Answers
Answer is:
Θ(logn)
Answer is:
is far less than one
Answer is: