2 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 1.8k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 5 5 votes 150 comparisons abhishekmehta4u answered Apr 1, 2018 • selected Apr 1, 2018 by iarnav abhishekmehta4u comment Share Follow See all 2 Comments 2 2 Comments reply iarnav commented Apr 1, 2018 reply Follow flag Thanks bhai, ek baar phir se. 0 0 replyShare Shamim Ahmed commented Dec 21, 2018 reply Follow flag We can also do it by using tournament method. 0 0 replyShare Please log in or register to add a comment.
1 1 vote 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 1 1 comment reply iarnav commented Apr 1, 2018 reply Follow flag Thanks! :) 0 0 replyShare Please log in or register to add a comment.