Given a set of n points (x,y), how to find the number of pairs of points with negative slopes between them in O(n logn) time?
Given a set of n points (x,y), is it possible to find the number of pairs of points with negative slopes between them in O(n logn) time?