Skip to content

Commit e05cfdd

Browse files
committed
no public or default constructors allowed
1 parent cac9706 commit e05cfdd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ public String toString() {
2626
public class ClosestPair {
2727
private static final double INFINITY = Double.MAX_VALUE;
2828

29+
private ClosestPair() {
30+
}
31+
2932
public static double euclideanDistance(Point p1, Point p2) {
3033
return Math.sqrt(Math.pow(p1.x - p2.x, 2) + Math.pow(p1.y - p2.y, 2));
3134
}

0 commit comments

Comments
 (0)