@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 [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.
