又看到你的照片# Love - 情爱幽幽
l*y
1 楼
Given a set of points (x,y) on a 2D coord system, identify list of 2D coords
that are of distance less than x units long.
Eg. Let x = 1; Given (0,0), (0,1), (1, 2), (4,6); Return
1 -> (0,0), (0,1)
brute force n^2.
有人有更好的解法吗?
谢谢!
that are of distance less than x units long.
Eg. Let x = 1; Given (0,0), (0,1), (1, 2), (4,6); Return
1 -> (0,0), (0,1)
brute force n^2.
有人有更好的解法吗?
谢谢!