Count pairs of points having distance between them equal to integral values in a K-dimensional space
Given an array points[] representing N points in a K-dimensional space, the task is to find the count of pairs of points in the space such that the distance between the points of each pair is an integer value. Examples: Input: points[] = { {1, 2}, {5, 5}, {2, 8} }, K = 2Output: 1Explanation: Distance between points of the pair(points[0], points[1])