2 votes 2 votes The minimum number of comparisons required to find the minimum and the maximum of 101 numbers is ________. When n is even then it's relatively easy, but how to deal with n is odd? My answer is 150 comparisons. Algorithms algorithms maximum-minimum numerical-answers + – iarnav asked Mar 30, 2018 retagged Jul 8, 2022 by Lakshman Bhaiya iarnav 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 5 votes 5 votes 150 comparisons abhishekmehta4u answered Apr 1, 2018 selected Apr 1, 2018 by iarnav abhishekmehta4u comment Share Follow See all 2 Comments See all 2 2 Comments reply iarnav commented Apr 1, 2018 reply Follow Share Thanks bhai, ek baar phir se. 0 votes 0 votes Shamim Ahmed commented Dec 21, 2018 reply Follow Share We can also do it by using tournament method. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes https://www.youtube.com/watch?v=dEyRl9Tj83g please refer this video. and this link https://www.geeksforgeeks.org/maximum-and-minimum-in-an-array/ Abhinandan Sharma answered Mar 31, 2018 Abhinandan Sharma comment Share Follow See 1 comment See all 1 1 comment reply iarnav commented Apr 1, 2018 reply Follow Share Thanks! :) 0 votes 0 votes Please log in or register to add a comment.