@Navin- Its only for continuous number :- if size of array <= max-min for Non continuous it takes O(R) space complexity as suggested by daksh. where R is range of number.
On Mon, Aug 13, 2012 at 2:55 PM, Navin <navin.nit...@gmail.com> wrote: > @vivek :- what if the array index goes out of bound. > I mean if |max - min | > size of the array, then how will u mark the > element as negative/positive because that index doesn't exist even. > It won't work in that case. > > > > -- > 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/-/DXEES3kjKJoJ. > > 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. > -- 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 algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.