GATE CS 2008 · Arrays & Matrix Representation
MCQ · 2 marks · Problem PROG-DSTR-0192
The minimum number of comparisons required to determine if an integer appears
more than n/2 times in a sorted array of n integers is
- A
\(\Theta\)(n)
- B
\(\Theta\)(logn)
- C
\(\Theta\)(log*n)
- D
\(\Theta\)(1)
Solve it on GATE DA practice →More Basic Data Structures problems
Show the worked solution
Official GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow:
https://gateoverflow.in/452/gate2008-40
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com