Decide whether point i is a DBSCAN core point: it is a core point if at least min_samples points (including itself) lie within Euclidean distance eps of it.
Implement solve(X,i,eps,min_samples=1).
Returns. Return 1 if point i is a core point and 0 otherwise.
Example 1
Input:
solve([[0.0, 0.0], [0.1, 0.0], [3.0, 3.0]], 0, 0.2, 2)
Output:
1
Example 2
Input:
solve([[0.0, 0.0], [0.1, 0.0], [3.0, 3.0]], 2, 0.2, 2)
Output:
0
No results yet
Run your code to check it against the examples, or submit to run every test.