Consider an unordered list of N distinct integers. What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest in the list?
Solution :
The correct option is 1.
To understand why this is correct, let us break down the problem step-by-step:
We are given an unordered list of distinct integers (where ).
Our objective is to find any element in the list that is not the largest element.
Since all the integers in the list are distinct, there is exactly one unique largest element. The remaining elements are all strictly smaller than this largest element, and any of them would be a valid answer.
To identify one such element, we can simply choose any two arbitrary elements from the list, say and , and perform a single comparison:
Because the elements are distinct, we have two possible outcomes:
1. If the comparison shows that , then is smaller than . Since there exists an element in the list () that is strictly greater than , cannot possibly be the largest element in the list.
2. If the comparison shows that , then is smaller than . By the same logic, cannot be the largest element in the list.
In either case, a single comparison of two elements is sufficient to guarantee that the smaller of the two is not the largest element in the list.
Therefore, the minimum number of element comparisons required is .
Completely free for students. Educators & coaching institutes get 2 months free Pro trial to create tests.
Access unlimited practice questions, detailed step-by-step solutions, and exam study materials — completely free for students.
Create and conduct professional online assessments with AI question generation, tab proctoring, and comprehensive batch management.
SSC CHSL Tier-1 Shift 1 2 July 2024 question paper with answers and detailed solutions. This practice paper covers questions from General Intelligence & Reasoning, General Awareness, Quantitative Aptitude, and English Language as asked in the SSC CHSL Tier-1 examination. Practice the SSC CHSL 2 July 2024 Shift 1 paper to understand the exam pattern, question types, difficulty level, and important topics for upcoming SSC CHSL exams.
SSC CHSL Tier-1 Shift 2 held on 2 July 2024 question paper with answers and detailed solutions. This previous year paper covers General Intelligence & Reasoning, Quantitative Aptitude, General Awareness, and English Language. The SSC CHSL Tier-1 exam was conducted in CBT mode with 100 questions for 200 marks and a 60-minute duration.
Copyright © 2026 Combe Labs Private Limited. All Rights Reserved.