diff --git a/SciPy Spatial/Problem 3/C.py b/SciPy Spatial/Problem 3/C.py new file mode 100644 index 0000000000000000000000000000000000000000..c919b46d10e4dc7f61a2d4d4748ccdf1d9bd81a2 --- /dev/null +++ b/SciPy Spatial/Problem 3/C.py @@ -0,0 +1,5 @@ +from scipy.spatial import KDTree +points = [(-2, -1), (3, 8), (-2, 5), (-2, -3)] +kdtree = KDTree(points) +res = kdtree.query_pairs((2, 3)) +print(res) \ No newline at end of file