diff --git a/checkstyle.xml b/checkstyle.xml index 912a6b24..444b366d 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -161,7 +161,7 @@ - + diff --git a/src/main/java/com/thealgorithms/datastructures/trees/KDTree.java b/src/main/java/com/thealgorithms/datastructures/trees/KDTree.java index c3be07ee..cdcbafa5 100644 --- a/src/main/java/com/thealgorithms/datastructures/trees/KDTree.java +++ b/src/main/java/com/thealgorithms/datastructures/trees/KDTree.java @@ -81,6 +81,11 @@ public class KDTree { return false; } + @Override + public int hashCode() { + return Arrays.hashCode(coordinates); + } + @Override public String toString() { return Arrays.toString(coordinates);