@Gene: I am wondering about the the N log N factor.
I agree with the log N component, but, can u clarify on the first component in N * log N (N being no. of unique numbers) we still check for each element in the input (n), the binary search among 'N' unique values. Isn't this n log N n - input size. N- unique numbers. -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web visit https://groups.google.com/d/msg/algogeeks/-/7zKgmBKQZRkJ. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.