Find the distance between the most distant points in c++… how to solve this problem…
The problem can be solved using the concept of Convex Hull. Once you get the convex hull of all the points the answer lies among the points on the boundary of the hull. Then the most distant points from the hull can be calculated in O(N) time (i.e. by looking at diagonally opposite points and checking distance with its neighbors).
One Implementation in C++ can be found here :