http://www.mycareerstack.com/question/279/find-out-non-repeating-numbers/ go through above link.....you can expand it's idea for your case ...enjoy :)
On Mon, Aug 13, 2012 at 4:42 PM, vivek rungta <vivekrungt...@gmail.com>wrote: > > > On Mon, Aug 13, 2012 at 4:39 PM, vivek rungta <vivekrungt...@gmail.com>wrote: > >> >> @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. > -- -- ‘Kailash Bagaria’ B-tech 4th year Computer Science & Engineering Indian Institute of Technology, Roorkee Roorkee, India (247667) -- 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.