755 views
0 votes
0 votes

What should be the time complexity of this one?

Given array of n elements leading element of the array is the element which repeated more than n/2 times in array. What is time complexity to find the leading element in array s.t.

  1. $\theta$($logn)$
  2.  $\theta$(n)
  3. $\theta$ $(nlog n)$
  4. $\theta$$(n^2)$

With a proper explanation, please.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3
0 votes
0 votes
1 answer
4
NeelParekh asked Jul 27, 2023
281 views
If an array is split in the form of increasing and decreasing order then what is TC to find minimum element in the array?