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
-~----------~----~----~----~------~----~------~--~---
- [algogeeks] Re: find the most occured (more than N/2 ... Praveen
- [algogeeks] Re: find the most occured (more than... Karthik Singaram L
- [algogeeks] Re: find the most occured (more ... Praveen
- [algogeeks] Re: find the most occured (m... Vinodh Kumar
- [algogeeks] Re: find the most occure... Praveen
- [algogeeks] Re: find the most o... Arunachalam
- [algogeeks] Re: find the most o... Praveen
- [algogeeks] Re: find the most o... Vinodh Kumar
- [algogeeks] Re: find the most o... Dhyanesh
- [algogeeks] Re: find the most o... Siva
- [algogeeks] Re: find the most o... subrahmanyam kambala
- [algogeeks] Re: find the most o... Googmeister
- [algogeeks] Re: find the most o... Vishal
- [algogeeks] Re: find the most occured (more ... Googmeister
- [algogeeks] Re: find the most occured (m... Guillaume CL
- [algogeeks] Re: find the most occure... Googmeister