HI..guys.....
there is an element repeated more than N/2 times

taking consecutive 3 elements and checking whether any two elements are equal or not....

if no of repetitions is equal to N/2 also..this logic will work

it will also check if no of repetitions is more than N/3+1



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to