@Akash: here the majority means the element that is repeated more than half
the size of array ( so in your example C is not in majority)
that's why i reduced the size to 2n-1 and then used moore's algorithm

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to