I think you can use counting array in this algo. And keep checking whenever the count of any element goes ahead of 1, it will be the first repeating element. Is it something more difficult than this ?? Please correct me if anything is wrong in my thought.
-- 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.
