Find the DBSCAN ε-neighbourhood of a point: the indices of all points (including the point itself) whose Euclidean distance to point i is at most eps.
Implement solve(X,i,eps).
Returns. Return an integer NumPy array of indices in increasing order.
Example 1
Input:
solve([[0.0, 0.0], [0.1, 0.0], [3.0, 3.0]], 0, 0.2)
Output:
[0, 1]
Example 2
Input:
solve([[0.0], [1.0], [2.0], [3.0]], 1, 1.0)
Output:
[0, 1, 2]
No results yet
Run your code to check it against the examples, or submit to run every test.