*@sravanreddy001: *What i can presume from your solution is , correct me if i am wrong If the array has n elements (including the repetitive) where you will create at worst n/2 variable to keep track and counting the number. Lets say the array can have 1M.
or you want to mean something else ? *Subhransu Panigrahi * *Mobile:* *+91-9840931538* *Email:* [email protected] On Sat, Apr 16, 2011 at 11:57 PM, Subhransu <[email protected]>wrote: > Rephrasing the array to reflect one non-repetative element. Inconvenience > regretted. > A{1, 1024, 2 , 1, 2, *3*, 4, 4, 1024}. > Now there only one non-repetative element "3"... > > > *Subhransu Panigrahi > * > *Mobile:* *+91-9840931538* > *Email:* [email protected] > > > > On Sat, Apr 16, 2011 at 11:39 PM, sravanreddy001 <[email protected] > > wrote: > >> @shadow.. your approach fails if the same number has odd number of >> occurances... >> >> -- >> 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. >> > > -- 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.
