Math, asked by sumit29401, 11 months ago

Given a sorted set of intergers of size n. Check if there exists a number which occurs more then n/4 times.

Answers

Answered by Anonymous
6

Answer:

Input : {3, 3, 4, 2, 4, 4, 2, 4, 4}

Output : 4

Input : {3, 3, 4, 2, 4, 4, 2, 4}

Output : No Majority Element

Similar questions