Is there any restriction on the input like they are in given range ? On Sep 11, 11:10 pm, Neha Singh <[email protected]> wrote: > You are given an array that contains integers. The integers content is such > that every integer occurs 3 times in that array leaving one integer that > appears only once. > Fastest way to find that single integer > eg: > Input: [2,1,4,5,1,4,2,2,4,1] > Answer: 5 > > The solution must be of O(n) time and O(1) space
-- 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.
