Skip to content

Commit 56ddb52

Browse files
committed
As required for PRs, URL of algorithm solution included in a comment
1 parent 6aa1b16 commit 56ddb52

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/thealgorithms/randomized/ClosestPair.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
import java.math.RoundingMode;
44
import java.util.*;
55

6+
// As required by Repository, new algorithms have URL in comments with explanation
7+
// https://www.geeksforgeeks.org/closest-pair-of-points-using-divide-and-conquer-algorithm
8+
// Given 2 or more points on a 2-dimensional plane, find the closest 2 points in Euclidean distance
9+
// This class uses the divide and conquer technique with recursion
10+
611
final class Point implements Comparable<Point> {
712
double x;
813
double y;

0 commit comments

Comments
 (0)